diff --git a/apps/api/src/app/core/seeds/SeedDataService.ts b/apps/api/src/app/core/seeds/SeedDataService.ts index e4169f8755..e2b7729405 100644 --- a/apps/api/src/app/core/seeds/SeedDataService.ts +++ b/apps/api/src/app/core/seeds/SeedDataService.ts @@ -289,14 +289,9 @@ export class SeedDataService { employees: [...employees.defaultEmployees] }); - const productCategories = await createProductCategories( - this.connection, - defaultOrganization - ); - const productTypes = await createProductTypes( - this.connection, - defaultOrganization - ); + await createProductCategories(this.connection, defaultOrganization); + + await createProductTypes(this.connection, defaultOrganization); this.log( chalk.green( diff --git a/apps/api/src/app/product-category/product-category.controller.ts b/apps/api/src/app/product-category/product-category.controller.ts index 0a0f16b27f..34182ce012 100644 --- a/apps/api/src/app/product-category/product-category.controller.ts +++ b/apps/api/src/app/product-category/product-category.controller.ts @@ -1,6 +1,5 @@ import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; -import { UseGuards, Controller, Get, HttpStatus, Query } from '@nestjs/common'; -import { AuthGuard } from '@nestjs/passport'; +import { Controller, Get, HttpStatus, Query } from '@nestjs/common'; import { CrudController, IPagination } from '../core'; import { ProductCategory } from './product-category.entity'; import { ProductCategoryService } from './product-category.service'; diff --git a/apps/api/src/app/product-variant/product-variant.entity.ts b/apps/api/src/app/product-variant/product-variant.entity.ts index 745e9e3fcd..40142a534a 100644 --- a/apps/api/src/app/product-variant/product-variant.entity.ts +++ b/apps/api/src/app/product-variant/product-variant.entity.ts @@ -1,14 +1,5 @@ import { Base } from '../core/entities/base'; -import { - Entity, - Column, - OneToMany, - ManyToOne, - ManyToMany, - JoinTable, - OneToOne, - RelationId -} from 'typeorm'; +import { Entity, Column, ManyToOne, OneToOne, RelationId } from 'typeorm'; import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; import { ProductVariant as IProductVariant } from '@gauzy/models'; import { ProductVariantPrice } from '../product-variant-price/product-variant-price.entity'; diff --git a/apps/gauzy/src/app/pages/inventory/inventory.module.ts b/apps/gauzy/src/app/pages/inventory/inventory.module.ts index 0465d38cff..cb921833b4 100644 --- a/apps/gauzy/src/app/pages/inventory/inventory.module.ts +++ b/apps/gauzy/src/app/pages/inventory/inventory.module.ts @@ -17,7 +17,6 @@ import { TranslateHttpLoader } from '@ngx-translate/http-loader'; import { HttpClient } from '@angular/common/http'; import { ProductMutationComponent } from '../../@shared/product-mutation/product-mutation.component'; import { ProductMutationModule } from '../../@shared/product-mutation/product-mutation.module'; -import { UserFormsModule } from '../../@shared/user/forms/user-forms.module'; import { ThemeModule } from '../../@theme/theme.module'; export function HttpLoaderFactory(http: HttpClient) {