Skip to content

Commit b66d05b

Browse files
committed
add missing db arg
1 parent c2cb256 commit b66d05b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/oasst_backend/api/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def api_auth(
5353
if api_key or settings.DEBUG_SKIP_API_KEY_CHECK:
5454

5555
if settings.DEBUG_SKIP_API_KEY_CHECK or settings.DEBUG_ALLOW_ANY_API_KEY:
56-
return get_dummy_api_client()
56+
return get_dummy_api_client(db)
5757

5858
api_client = db.query(ApiClient).filter(ApiClient.api_key == api_key).first()
5959
if api_client is not None and api_client.enabled:

0 commit comments

Comments
 (0)