From 9344c137f71ee0ee4561ca97f1dccdbfbc7eb389 Mon Sep 17 00:00:00 2001 From: Tony Rewin Date: Tue, 3 Oct 2023 19:41:10 +0300 Subject: [PATCH] auth-fix --- CHECKS | 4 ++-- services/auth.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHECKS b/CHECKS index 738277f..ef44265 100644 --- a/CHECKS +++ b/CHECKS @@ -1,5 +1,5 @@ WAIT=10 TIMEOUT=10 -ATTEMPTS=10 +ATTEMPTS=3 -/ +/graphql diff --git a/services/auth.py b/services/auth.py index 133138d..8dd8313 100644 --- a/services/auth.py +++ b/services/auth.py @@ -55,7 +55,7 @@ async def check_auth(req): return is_authenticated, user_id -def author_id_by_user_id(user_id): +async def author_id_by_user_id(user_id): async with local_session() as session: author = session(Author).where(Author.user == user_id).first() return author.id