add missing db arg

This commit is contained in:
Andreas Köpf
2022-12-29 14:15:12 +01:00
committed by Andreas Köpf
parent c2cb2562d5
commit b66d05bdf2
+1 -1
View File
@@ -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: