From 459ec9da140ef3a2996153e7b9c20dcd38b9b2cb Mon Sep 17 00:00:00 2001 From: msyu Date: Mon, 10 Mar 2025 19:56:27 +0300 Subject: [PATCH] 066 debug experimental exclude is_deleted from uniqueness check --- v1/Application.cfc | 2 +- v1/resources/instance_operation_cfs_param_ls.cfc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index b5a0232..f157ea1 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -51,7 +51,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="Deck API"; - variables.framework.docs.APIVersion="0.065"; + variables.framework.docs.APIVersion="0.066"; variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/resources/instance_operation_cfs_param_ls.cfc b/v1/resources/instance_operation_cfs_param_ls.cfc index 6d31a6a..cdbab66 100644 --- a/v1/resources/instance_operation_cfs_param_ls.cfc +++ b/v1/resources/instance_operation_cfs_param_ls.cfc @@ -249,11 +249,14 @@ select count(*) as cnt from instance_operation_cfs_param p + join instance_operation o on (p.instance_operation_uid=o.instance_operation_uid) + join instance e on (o.instance_uid=e.instance_uid) where p.param_value= AND p.svc_operation_cfs_param_id= AND p.instance_operation_cfs_param_uid <> + AND (select cast(st.instance_data->>'isDeleted' as boolean) from instance_state st where st.instance_uid=e.instance_uid order by version desc limit 1) IS NOT TRUE