Skip to content

Commit

Permalink
func: AuthTest add db call
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycraft committed Jun 8, 2024
1 parent e2c9496 commit 497c4f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ def start_command(req: func.HttpRequest) -> func.HttpResponse:
@app.route(route="AuthTest", auth_level=func.AuthLevel.FUNCTION)
def auth_test(req: func.HttpRequest) -> func.HttpResponse:
logging.info('AuthTest success for %s', req.url)
try:
producer.search_chat_id('5.144.189.14')
except Exception as e:
logging.error('Error: %s', e)
return func.HttpResponse("Error",status_code=500)
return func.HttpResponse("OK",status_code=200)

0 comments on commit 497c4f3

Please sign in to comment.