134 resource Realm fix

This commit is contained in:
msyu
2025-09-02 11:00:38 +03:00
parent 6d36323d68
commit d99a4a43f1
+5 -5
View File
@@ -51,8 +51,7 @@
//variables.framework.docs={};
variables.framework.docs.APIName="svc-api";
variables.framework.docs.APIVersion="0.133"; /*resource_realm debug*/ /*$ git config --global --unset user.password*/
variables.framework.docs.APIVersion="0.134"; /*resource_realm debug*/ /*$ git config --global --unset user.password*/
variables.framework.globalHeaders = structNew();
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
@@ -400,13 +399,14 @@
join contract c on (u.contragent_id=c.contragent_id)
join specification s on (c.contract_id=s.contract_id)
where idp_usr_uid=<cfqueryparam cfsqltype="cf_sql_other" value="#arguments.usrUid#" null=#!isValid('guid',arguments.usrUid)#/>
order by specification_id desc limit 1;
order by specification_id desc
limit 1;
</cfquery>
<!--- <cfdump var=#local.qGetCustomerInfo#/><cfabort/> --->
<cfif local.qGetCustomerInfo.recordCount GT 0>
<cfreturn {"usrId"=#local.qGetCustomerInfo.usr_id#,
"contragentId"=#local.qGetCustomerInfo.specification_id#,
"contractId"=#local.qGetCustomerInfo.specification_id#,
"contragentId"=#local.qGetCustomerInfo.contragent_id#,
"contractId"=#local.qGetCustomerInfo.contract_id#,
"specificationId"=#local.qGetCustomerInfo.specification_id#
}/>
<cfelse>