@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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AA6aA,iBAAS,MAAM,CAAC,OAAO,EAAE,GAAG,QAya3B;;AACD,wBAA0B"}
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
- insert into admin.cls(code,name,parent,icon,data)
503
- select value->>'id',value->>'text','${name}',value->>'icon',value->>'data'
504
- from json_array_elements('${JSON.stringify(loadTemplate).replace(/'/g, "''")}'::json)`);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.0.59",
3
+ "version": "2.0.60",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [