validate creating a new link #2

Closed
opened 2023-09-14 22:45:12 -07:00 by bucky · 1 comment

the code creates a new link, but the db has unique constraints. if an existing url is submitted, load it instead. if an existing code is generate, regenerate until a unique one is created.

the code creates a new link, but the db has unique constraints. if an existing url is submitted, load it instead. if an existing code is generate, regenerate until a unique one is created.
Poster
Owner

this has been done a while ago as well. checks if the url exists already, if it does, it returns that instead of generating a new one.

this has been done a while ago as well. checks if the url exists already, if it does, it returns that instead of generating a new one.
bucky closed this issue 2023-10-02 13:04:57 -07:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bucky/url-shortener#2
There is no content yet.