From f11bbec79f0ba2d0730d86a410e57e69da591c83 Mon Sep 17 00:00:00 2001 From: Bartosz Dokurno Date: Wed, 22 Nov 2023 15:37:43 +0100 Subject: [PATCH] Fix ci --- .github/workflows/ci.yaml | 4 ++++ .../inventory/inventory.service.spec.ts | 20 +++++++++---------- .../models/warehouses/warehouses.module.ts | 9 ++++----- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 14f0034f..bcee29e0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -108,6 +108,10 @@ jobs: codeql: name: Perform CodeQL Analysis runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write steps: - name: Checkout the repository uses: actions/checkout@v3 diff --git a/apps/api/src/models/inventory/inventory.service.spec.ts b/apps/api/src/models/inventory/inventory.service.spec.ts index c28d164c..5f584920 100644 --- a/apps/api/src/models/inventory/inventory.service.spec.ts +++ b/apps/api/src/models/inventory/inventory.service.spec.ts @@ -2,17 +2,17 @@ import { Test, TestingModule } from '@nestjs/testing'; import { InventoryService } from './inventory.service'; describe('InventoryService', () => { - let service: InventoryService; + let service: InventoryService; - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - providers: [InventoryService], - }).compile(); + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + providers: [InventoryService], + }).compile(); - service = module.get(InventoryService); - }); + service = module.get(InventoryService); + }); - it('should be defined', () => { - expect(service).toBeDefined(); - }); + it('should be defined', () => { + expect(service).toBeDefined(); + }); }); diff --git a/apps/api/src/models/warehouses/warehouses.module.ts b/apps/api/src/models/warehouses/warehouses.module.ts index 511b9d08..231a32bf 100644 --- a/apps/api/src/models/warehouses/warehouses.module.ts +++ b/apps/api/src/models/warehouses/warehouses.module.ts @@ -1,10 +1,9 @@ import { Module } from '@nestjs/common'; -import { WarehousesService } from './warehouses.service'; -import { WarehousesController } from './warehouses.controller'; -import { WarehouseRepository } from './warehouse.repository'; -import { Warehouse, WarehouseSchema } from './schemas/warehouse.schema'; import { MongooseModule } from '@nestjs/mongoose'; -import { OrganizationsModule } from '../organizations/organizations.module'; +import { Warehouse, WarehouseSchema } from './schemas/warehouse.schema'; +import { WarehouseRepository } from './warehouse.repository'; +import { WarehousesController } from './warehouses.controller'; +import { WarehousesService } from './warehouses.service'; @Module({ imports: [MongooseModule.forFeature([{ name: Warehouse.name, schema: WarehouseSchema }])],