From f4a09515fec0ea5168947cb300ecd5954bebe8e1 Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sat, 12 Aug 2023 21:01:55 +0500 Subject: [PATCH] modified stuff --- api/core.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/api/core.py b/api/core.py index 02954e3..f266147 100644 --- a/api/core.py +++ b/api/core.py @@ -51,7 +51,7 @@ async def create_user(incoming_request: fastapi.Request): auth_error = await check_core_auth(incoming_request) if auth_error: - return auth_error + return auth_error try: payload = await incoming_request.json() @@ -63,3 +63,14 @@ async def create_user(incoming_request: fastapi.Request): await new_user_webhook(user) return user + +if __name__ == '__main__': + # new_user_webhook({ + # '_id': 'JUST_A_TEST_IGNORE_ME', + # 'auth': { + # 'discord': 123, + # 'github': 'abc' + # } + # }) + + pass