@hedhog/admin 0.0.46 → 0.0.47

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.46",
3
+ "version": "0.0.47",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -133,7 +133,6 @@ export class Migrate implements MigrationInterface {
133
133
  order: menu.order,
134
134
  icon: menu.icon,
135
135
  })
136
- .returning('id')
137
136
  .execute();
138
137
 
139
138
  await queryRunner.manager
@@ -142,12 +141,12 @@ export class Migrate implements MigrationInterface {
142
141
  .into('menu_translations', ['menu_id', 'locale_id', 'name'])
143
142
  .values([
144
143
  {
145
- menu_id: m.raw[0].id,
144
+ menu_id: m.raw.insertId,
146
145
  locale_id: 1,
147
146
  name: menu.name_en,
148
147
  },
149
148
  {
150
- menu_id: m.raw[0].id,
149
+ menu_id: m.raw.insertId,
151
150
  locale_id: 2,
152
151
  name: menu.name_pt,
153
152
  },
@@ -218,7 +217,6 @@ export class Migrate implements MigrationInterface {
218
217
  icon: menu.icon,
219
218
  menu_id: menuManagement[0].id,
220
219
  })
221
- .returning('id')
222
220
  .execute();
223
221
 
224
222
  await queryRunner.manager
@@ -227,12 +225,12 @@ export class Migrate implements MigrationInterface {
227
225
  .into('menu_translations', ['menu_id', 'locale_id', 'name'])
228
226
  .values([
229
227
  {
230
- menu_id: m.raw[0].id,
228
+ menu_id: m.raw.insertId,
231
229
  locale_id: 1,
232
230
  name: menu.name_en,
233
231
  },
234
232
  {
235
- menu_id: m.raw[0].id,
233
+ menu_id: m.raw.insertId,
236
234
  locale_id: 2,
237
235
  name: menu.name_pt,
238
236
  },
@@ -182,10 +182,9 @@ export class Migrate implements MigrationInterface {
182
182
  icon: group.icon,
183
183
  slug: group.slug,
184
184
  })
185
- .returning('id')
186
185
  .execute();
187
186
 
188
- const settingGroupId = settingGroup.raw[0].id;
187
+ const settingGroupId = settingGroup.raw.insertId;
189
188
 
190
189
  await queryRunner.manager
191
190
  .createQueryBuilder()
@@ -223,10 +222,9 @@ export class Migrate implements MigrationInterface {
223
222
  type: s.type,
224
223
  value: s.value,
225
224
  })
226
- .returning('id')
227
225
  .execute();
228
226
 
229
- const settingId = setting.raw[0].id;
227
+ const settingId = setting.raw.insertId;
230
228
 
231
229
  await queryRunner.manager
232
230
  .createQueryBuilder()