fix 500 error in localhost

master
Aevann 2024-04-06 04:40:36 +02:00
parent 4f3a3a0b8e
commit 701da59c69
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ def request_api_keys(v):
g.db.add(new_app)
body = f"@{v.username} has requested API keys for `{request.values.get('name')}`. You can approve or deny the request [here](/admin/apps)."
send_repeatable_notification(AEVANN_ID, body)
notified_user_id = AEVANN_ID if AEVANN_ID else 5
send_repeatable_notification(notified_user_id, body)
return {"message": "API keys requested successfully!"}