@opengis/fastify-table 2.0.59 → 2.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AA6aA,iBAAS,MAAM,CAAC,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AA6aA,iBAAS,MAAM,CAAC,OAAO,EAAE,GAAG,QA0a3B;;AACD,wBAA0B"}
|
package/dist/index.js
CHANGED
|
@@ -499,9 +499,9 @@ function plugin(fastify) {
|
|
|
499
499
|
}
|
|
500
500
|
else if (type === "cls" && loadTemplate?.length && el.update) {
|
|
501
501
|
clsQuery.push(`insert into admin.cls(name,type, module,hash) values('${name}','json', '${module?.replace(/'/g, "''")}','${el.hash}');
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
502
|
+
insert into admin.cls(code,name,parent,icon,color,data)
|
|
503
|
+
select value->>'id',value->>'text','${name}',value->>'icon',value->>'color',value->>'data'
|
|
504
|
+
from json_array_elements('${JSON.stringify(loadTemplate).replace(/'/g, "''")}'::json) on conflict (code,parent) do update set color=excluded.color;`);
|
|
505
505
|
if (config.trace)
|
|
506
506
|
console.log(name, type, "insert fresh cls");
|
|
507
507
|
return el.hash;
|