From 4d5c047ddcb4803d84765fb2fd93f9660ec6b4ef Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Tue, 9 May 2023 11:14:39 +0200 Subject: [PATCH] policy data should be `null` not an empty object --- src/api/core/organizations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index bedeae76..7c3b41fd 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -1652,7 +1652,7 @@ async fn get_policy(org_id: &str, pol_type: i32, _headers: AdminHeaders, mut con let policy = match OrgPolicy::find_by_org_and_type(org_id, pol_type_enum, &mut conn).await { Some(p) => p, - None => OrgPolicy::new(String::from(org_id), pol_type_enum, "{}".to_string()), + None => OrgPolicy::new(String::from(org_id), pol_type_enum, "null".to_string()), }; Ok(Json(policy.to_json()))