Skip to content

Commit

Permalink
fix(api): create tenant in no auth (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Apr 3, 2024
1 parent ae6fb73 commit 3e4e4b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keep/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def on_starting(server=None):
create_db_and_tables()

# Create single tenant if it doesn't exist
if AUTH_TYPE == AuthenticationType.SINGLE_TENANT.value:
if AUTH_TYPE in [
AuthenticationType.SINGLE_TENANT.value,
AuthenticationType.NO_AUTH.value,
]:
try_create_single_tenant(SINGLE_TENANT_UUID)

if os.environ.get("USE_NGROK", "false") == "true":
Expand Down

0 comments on commit 3e4e4b3

Please sign in to comment.