diff --git a/machines/gerd/services/notify/app.py b/machines/gerd/services/notify/app.py index ffb7c73..9e55ee8 100644 --- a/machines/gerd/services/notify/app.py +++ b/machines/gerd/services/notify/app.py @@ -265,6 +265,9 @@ def send_notification(): except Exception: return ("Unable to compile JQ, please ensure it is correct", 400) + if not isinstance(body, str): + body = json.dumps(body, indent=4) + con = get_db() cur = con.cursor() res = cur.execute(