From 649ff85af44d567b2e644c670f4feca074708faf Mon Sep 17 00:00:00 2001 From: MauricioGarciaS <47052044+MauricioGarciaS@users.noreply.github.com> Date: Tue, 22 Nov 2022 13:48:36 +0100 Subject: [PATCH] Fixed return in signals --- ee/api/chalicelib/core/signals.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ee/api/chalicelib/core/signals.py b/ee/api/chalicelib/core/signals.py index 1bd8eebc6..0311d3259 100644 --- a/ee/api/chalicelib/core/signals.py +++ b/ee/api/chalicelib/core/signals.py @@ -15,7 +15,7 @@ def handle_frontend_signals(project_id: int, user_id: str, data: schemas_ee.Sign 'category': data.category, 'data': json.dumps(data.data)}) conn.execute(query) # res = helper.dict_to_camel_case(conn.fetchone()) - return 1 + return {'success': 1} except Exception as e: - logging.info(f'Error while inserting\n{e}') - return 0 + return {'errors': e} + return {}