@hedhog/admin 0.0.51 → 0.0.52

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -20,20 +20,6 @@ export class Migrate implements MigrationInterface {
20
20
  .execute();
21
21
  }
22
22
 
23
- const adminAccessRoutes = [88, 1, 3];
24
-
25
- for (const routeId of adminAccessRoutes) {
26
- await queryRunner.manager
27
- .createQueryBuilder()
28
- .insert()
29
- .into('role_routes', ['role_id', 'route_id'])
30
- .values({
31
- role_id: 3,
32
- route_id: routeId,
33
- })
34
- .execute();
35
- }
36
-
37
23
  await queryRunner.manager
38
24
  .createQueryBuilder()
39
25
  .insert()
@@ -252,6 +252,20 @@ export class Migrate implements MigrationInterface {
252
252
  .execute();
253
253
  }
254
254
  }
255
+
256
+ const adminAccessRoutes = [88, 1, 3];
257
+
258
+ for (const routeId of adminAccessRoutes) {
259
+ await queryRunner.manager
260
+ .createQueryBuilder()
261
+ .insert()
262
+ .into('role_routes', ['role_id', 'route_id'])
263
+ .values({
264
+ role_id: 3,
265
+ route_id: routeId,
266
+ })
267
+ .execute();
268
+ }
255
269
  }
256
270
 
257
271
  public async down(queryRunner: QueryRunner): Promise<void> {