@opengis/admin 0.3.11 → 0.3.12
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/package.json
CHANGED
@@ -32,7 +32,8 @@ export default async function userCls(req) {
|
|
32
32
|
case when type='sql' then data else null end as sql from admin.user_cls u
|
33
33
|
where (case when type='json' then parent is null else true end)
|
34
34
|
and uid=(select uid from admin.users where $1 in (login,uid) limit 1)
|
35
|
-
and parent is null and ${query.type ? `type='${query.type}'` : '1=1'} and ${params?.id ? 'u.name=$2' : '1=1'}
|
35
|
+
and parent is null and ${query.type ? `type='${query.type}'` : '1=1'} and ${params?.id ? 'u.name=$2' : '1=1'}
|
36
|
+
order by cdate desc`;
|
36
37
|
|
37
38
|
if (query?.sql) return q;
|
38
39
|
|