Omkar008 commited on
Commit
682690e
·
verified ·
1 Parent(s): ba79378

Update dependencies/database.py

Browse files
Files changed (1) hide show
  1. dependencies/database.py +2 -1
dependencies/database.py CHANGED
@@ -80,7 +80,8 @@ class SupabaseDb:
80
  supabase = self.supabase_client()
81
  response = (
82
  supabase.table("user_gmail_token_details")
83
- .insert({"access_token": access_token,"refresh_token":refresh_token ,"email":email })
 
84
  .execute()
85
  )
86
  print("Inserting the access and refresh tokens")
 
80
  supabase = self.supabase_client()
81
  response = (
82
  supabase.table("user_gmail_token_details")
83
+ .update({"access_token": access_token,"refresh_token":refresh_token})
84
+ .eq('email',email)
85
  .execute()
86
  )
87
  print("Inserting the access and refresh tokens")