Skip to content

Expirarion Update #149

@OrH-Simplee

Description

@OrH-Simplee

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions