If a function invocation isnt successful and log response isnt enabled, store response anyway

This commit is contained in:
Peter Stockings
2023-12-22 19:01:52 +11:00
parent fe13df57ca
commit 56d47232e1

2
app.py
View File

@@ -285,7 +285,7 @@ def execute_http_function(user_id, function):
http_function['id'],
response_data['status'],
request_data if log_request else {},
response_data['result'] if log_response else {},
response_data['result'] if (log_response or response_data['status'] != 'SUCCESS') else {},
response_data['logs'])
# Map the Node.js response to Flask response