@opengis/admin 0.3.48 → 0.3.50

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,4 +1,4 @@
1
- import { _ as n, f as m } from "./import-file-C7QDgZX8.js";
1
+ import { _ as n, f as m } from "./import-file-BWWJMVUE.js";
2
2
  import { u as p } from "./user-B_2kh6ic.js";
3
3
  import { resolveComponent as f, openBlock as u, createElementBlock as d, createElementVNode as o, createBlock as h, createCommentVNode as b } from "vue";
4
4
  const x = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/admin",
3
- "version": "0.3.48",
3
+ "version": "0.3.50",
4
4
  "description": "This project Softpro Admin",
5
5
  "main": "dist/admin.js",
6
6
  "type": "module",
@@ -105,8 +105,8 @@ export default async function widgetGet({
105
105
  const { tableName } = pg.pk['log.table_changes'] ? await pg.query('select entity_type as "tableName" from log.table_changes where entity_id=$1 limit 1', [objectid]).then(el => el.rows?.[0] || {}) : {};
106
106
  const { pk } = await getMeta({ pg, table: tableName });
107
107
 
108
- if (!pk && !unittest) {
109
- return reply.status(404).send('table not found');
108
+ if (!pk && params.type === 'history' && !unittest) {
109
+ return reply.status(404).send('log table not found');
110
110
  }
111
111
 
112
112
  const q = tableName && pg.pk['admin.users'] ? `select ${username} as author, u.login, a.cdate, a.editor_date from ${tableName} a