Skip to content

Commit

Permalink
Fix supabase url for posting user updates
Browse files Browse the repository at this point in the history
  • Loading branch information
karntrehan committed Sep 26, 2024
1 parent 2d85241 commit 6227549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
super().__init__(title=title, timeout=timeout, custom_id=custom_id)

async def post_data(self, table_name, data):
url = f"{os.getenv('SUPABASE_KEY')}/rest/v1/{table_name}",
url = f"{os.getenv('SUPABASE_URL')}/rest/v1/{table_name}",
headers = {
"apikey": f"{os.getenv('SUPABASE_KEY')}",
"Authorization": f"Bearer {os.getenv('SUPABASE_KEY')}",
Expand Down

0 comments on commit 6227549

Please sign in to comment.