-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Description
when generating a shortened URL for the same link, and sending a new expiration date, it doesn't update the expiration.
example:
generate a link today, with 6.month.from_now expiration date with :
shortened_url = Shortener::ShortenedUrl.generate(url, expires_at: 6.month.from_now)
then in 3 months, generate the same link, with the exact same code:
shortened_url = Shortener::ShortenedUrl.generate(url, expires_at: 6.month.from_now)
expectation - expiration would be updated.
important to note - I don't know that the link already exists, but I do want to get the same shortened link. is it on purpose? any way around it?
Metadata
Metadata
Assignees
Labels
No labels