From ca99fc334b7c94233f8addd0ad8becdd253119b1 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 7 Jul 2023 17:56:51 +0200 Subject: [PATCH] fix(api): feature flag update missing payload --- api/chalicelib/core/feature_flags.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/chalicelib/core/feature_flags.py b/api/chalicelib/core/feature_flags.py index bd441c059..bcefcb92a 100644 --- a/api/chalicelib/core/feature_flags.py +++ b/api/chalicelib/core/feature_flags.py @@ -211,6 +211,7 @@ def prepare_params_to_create_flag(feature_flag_data, project_id, user_id): **variants_data, "payload": json.dumps(feature_flag_data.payload) } + return params @@ -321,6 +322,7 @@ def update_feature_flag(project_id: int, feature_flag_id: int, "flag_type", "is_persist", "is_active", + "payload", "updated_by", ) @@ -329,6 +331,7 @@ def update_feature_flag(project_id: int, feature_flag_id: int, "feature_flag_id": feature_flag_id, "project_id": project_id, **feature_flag.dict(), + "payload": json.dumps(feature_flag.payload), } sql = f"""