Skip to content

Commit

Permalink
Welp
Browse files Browse the repository at this point in the history
  • Loading branch information
JDJGInc authored Apr 27, 2024
1 parent ababbc0 commit 9c8f932
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ async def _code(code: Optional[str] = None, state: Optional[str] = None):
# I am dumb lol
# I need to re-do this.

access_token = data["token"]["access_token"]
refresh_token = data["token"]["refresh_token"]

if result:
await app.state.db.execute(
"UPDATE OAUTH_TOKENS SET ACCESS_TOKEN = $1 and REFRESH_TOKEN = $2 WHERE user_id = ($3)", , user_id ,
"UPDATE OAUTH_TOKENS SET ACCESS_TOKEN = $1 and REFRESH_TOKEN = $2 WHERE user_id = ($3)", access_token, refresh_token, user_id ,
)

return PlainTextResponse("Grabbing guild data so you can use it in command /data")
Expand Down

0 comments on commit 9c8f932

Please sign in to comment.