From f1411191b001bd35af83dda869ce492ff8f88899 Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 8 Nov 2024 15:01:30 -0600 Subject: Remove default statement for DB --- app/routes/links_routes.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/routes') diff --git a/app/routes/links_routes.py b/app/routes/links_routes.py index 1599c82..f56ebfc 100644 --- a/app/routes/links_routes.py +++ b/app/routes/links_routes.py @@ -51,6 +51,8 @@ async def create_link( link=link_path, owner=current_user.id, redirect_link=url.url, + expire_date=datetime.datetime.utcnow() + + datetime.timedelta(days=30), ) db.add(new_link) db.commit() -- cgit v1.2.3-70-g09d2