Omkar008 commited on
Commit
af45c4f
1 Parent(s): 9e1421c

Update dependencies/database.py

Browse files
Files changed (1) hide show
  1. dependencies/database.py +1 -2
dependencies/database.py CHANGED
@@ -80,8 +80,7 @@ class SupabaseDb:
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")
 
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")