@hedhog/admin 0.0.57 → 0.0.58
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -123,14 +123,14 @@ export class Migrate implements MigrationInterface {
|
|
123
123
|
];
|
124
124
|
|
125
125
|
for (const menu of menus) {
|
126
|
-
const
|
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',
|
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:
|
141
|
+
menu_id: m.id,
|
142
142
|
locale_id: 1,
|
143
143
|
name: menu.name_en,
|
144
144
|
},
|
145
145
|
{
|
146
|
-
menu_id:
|
146
|
+
menu_id: m.id,
|
147
147
|
locale_id: 2,
|
148
148
|
name: menu.name_pt,
|
149
149
|
},
|