@hedhog/admin 0.0.56 → 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 +1 -1
- package/src/migrations/migrate-05.ts +7 -12
    
        package/package.json
    CHANGED
    
    
| @@ -1,5 +1,4 @@ | |
| 1 1 | 
             
            import {
         | 
| 2 | 
            -
              getRepository,
         | 
| 3 2 | 
             
              MigrationInterface,
         | 
| 4 3 | 
             
              QueryRunner,
         | 
| 5 4 | 
             
              Table,
         | 
| @@ -124,18 +123,14 @@ export class Migrate implements MigrationInterface { | |
| 124 123 | 
             
                ];
         | 
| 125 124 |  | 
| 126 125 | 
             
                for (const menu of menus) {
         | 
| 127 | 
            -
                  const  | 
| 126 | 
            +
                  const m = await queryRunner.connection.getRepository(Menu).save({
         | 
| 127 | 
            +
                    url: menu.url,
         | 
| 128 | 
            +
                    order: menu.order,
         | 
| 129 | 
            +
                    icon: menu.icon,
         | 
| 130 | 
            +
                    slug: menu.slug,
         | 
| 131 | 
            +
                  });
         | 
| 128 132 |  | 
| 129 | 
            -
                   | 
| 130 | 
            -
                    await menuRepository.create({
         | 
| 131 | 
            -
                      url: menu.url,
         | 
| 132 | 
            -
                      order: menu.order,
         | 
| 133 | 
            -
                      icon: menu.icon,
         | 
| 134 | 
            -
                      slug: menu.slug,
         | 
| 135 | 
            -
                    }),
         | 
| 136 | 
            -
                  );
         | 
| 137 | 
            -
             | 
| 138 | 
            -
                  console.log('menu', m);
         | 
| 133 | 
            +
                  console.log('menuInserted', m);
         | 
| 139 134 |  | 
| 140 135 | 
             
                  await queryRunner.manager
         | 
| 141 136 | 
             
                    .createQueryBuilder()
         |