From b66d05bdf27e84c113b8f6c42eeb01b9eedf79ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6pf?= Date: Thu, 29 Dec 2022 14:15:12 +0100 Subject: [PATCH] add missing db arg --- backend/oasst_backend/api/deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/oasst_backend/api/deps.py b/backend/oasst_backend/api/deps.py index 244e55c7..d4a7ef50 100644 --- a/backend/oasst_backend/api/deps.py +++ b/backend/oasst_backend/api/deps.py @@ -53,7 +53,7 @@ def api_auth( if api_key or settings.DEBUG_SKIP_API_KEY_CHECK: if settings.DEBUG_SKIP_API_KEY_CHECK or settings.DEBUG_ALLOW_ANY_API_KEY: - return get_dummy_api_client() + return get_dummy_api_client(db) api_client = db.query(ApiClient).filter(ApiClient.api_key == api_key).first() if api_client is not None and api_client.enabled: