Skip to content

Commit

Permalink
refactor: Add created_at field to user_data in add_user_to_db function
Browse files Browse the repository at this point in the history
  • Loading branch information
Arghya721 committed Sep 3, 2024
1 parent bc4e301 commit eb202c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit eb202c3

Please sign in to comment.