From 21bcda1e3bc06370c14ed8ce5ed9288826a588d9 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 4 Mar 2024 19:08:21 +0300 Subject: [PATCH] webhook-fix --- services/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/webhook.py b/services/webhook.py index f77bd2f1..2784a8ad 100644 --- a/services/webhook.py +++ b/services/webhook.py @@ -30,7 +30,7 @@ class WebhookEndpoint(HTTPEndpoint): pic: str = user.get('picture', '') with local_session() as session: - author = session.query(Author).filter(Author.email == email).first() + author = session.query(Author).filter(Author.user == user_id).first() if not author: # If the author does not exist, create a new one slug: str = email.split('@')[0].replace(".", "-").lower()