From eb202c3a5b7ee58005faba8df3af5de5dd9f7513 Mon Sep 17 00:00:00 2001 From: Arghya721 Date: Wed, 4 Sep 2024 00:30:28 +0530 Subject: [PATCH] refactor: Add created_at field to user_data in add_user_to_db function --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 8f4db14..b0f42c8 100644 --- a/app.py +++ b/app.py @@ -417,6 +417,8 @@ async def add_user_to_db(user_ref, user_data): if user.exists: return else: + # add created_at to the user_data + user_data['created_at'] = google_firestore.SERVER_TIMESTAMP user_ref.set(user_data)