From 6e8f3ee321d703cf454f131c129a147c841467bc Mon Sep 17 00:00:00 2001 From: Parker Date: Sat, 16 Nov 2024 00:29:21 -0600 Subject: [PATCH] Keep expire_date as a day --- api/routes/links_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes/links_routes.py b/api/routes/links_routes.py index 97b4599..c060f3f 100644 --- a/api/routes/links_routes.py +++ b/api/routes/links_routes.py @@ -57,7 +57,7 @@ async def create_link( link=link_path, owner=current_user.id, redirect_link=url.url, - expire_date=datetime.datetime.utcnow() + expire_date=datetime.datetime.today() + datetime.timedelta(days=30), ) db.add(new_link)