@opengis/fastify-table 2.1.8 → 2.1.10
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.
|
@@ -30,7 +30,7 @@ export default async function accessGroupPost({ pg = pgClients.client, params, u
|
|
|
30
30
|
.map((el) => pg.query("insert into admin.role_access(role_id,route_id,actions) values ($1,$2,$3)", [id, el.path, el.actions])));
|
|
31
31
|
await Promise.all(routes
|
|
32
32
|
.filter((el) => el.resource && el.actions)
|
|
33
|
-
.map((el) => pg.query("insert into admin.role_access(resource_id,route_id,actions) values ($1,$2,$3)", [id, el.path, el.actions])));
|
|
33
|
+
.map((el) => pg.query("insert into admin.role_access(role_id,resource_id,route_id,actions) values ($1,$2,$3,$4)", [id, el.resource, el.path, el.actions])));
|
|
34
34
|
const rows = await pg
|
|
35
35
|
.query(`select a.route_id as path, b.actions as actions from admin.routes a
|
|
36
36
|
left join admin.role_access b on a.route_id=b.route_id
|