@hedhog/admin 0.0.57 → 0.0.58

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -123,14 +123,14 @@ export class Migrate implements MigrationInterface {
123
123
  ];
124
124
 
125
125
  for (const menu of menus) {
126
- const menuInserted = await queryRunner.manager.insert(Menu, {
126
+ const m = await queryRunner.connection.getRepository(Menu).save({
127
127
  url: menu.url,
128
128
  order: menu.order,
129
129
  icon: menu.icon,
130
130
  slug: menu.slug,
131
131
  });
132
132
 
133
- console.log('menuInserted', menuInserted);
133
+ console.log('menuInserted', m);
134
134
 
135
135
  await queryRunner.manager
136
136
  .createQueryBuilder()
@@ -138,12 +138,12 @@ export class Migrate implements MigrationInterface {
138
138
  .into('menu_translations', ['menu_id', 'locale_id', 'name'])
139
139
  .values([
140
140
  {
141
- menu_id: menuInserted.identifiers[0].id,
141
+ menu_id: m.id,
142
142
  locale_id: 1,
143
143
  name: menu.name_en,
144
144
  },
145
145
  {
146
- menu_id: menuInserted.identifiers[0].id,
146
+ menu_id: m.id,
147
147
  locale_id: 2,
148
148
  name: menu.name_pt,
149
149
  },