fix token error
Browse files- app/supabase_db.py +1 -1
app/supabase_db.py
CHANGED
@@ -21,7 +21,7 @@ class SupabaseClient:
|
|
21 |
Output: access_token (str) ho岷穋 None n岷縰 kh么ng c贸.
|
22 |
"""
|
23 |
try:
|
24 |
-
response = self.client.table('
|
25 |
if response.data and len(response.data) > 0:
|
26 |
return response.data[0]['token']
|
27 |
return None
|
|
|
21 |
Output: access_token (str) ho岷穋 None n岷縰 kh么ng c贸.
|
22 |
"""
|
23 |
try:
|
24 |
+
response = self.client.table('PageToken').select('token').eq('id', page_id).execute()
|
25 |
if response.data and len(response.data) > 0:
|
26 |
return response.data[0]['token']
|
27 |
return None
|