diff --git a/docs/swagger/swagger-spec.json b/docs/swagger/swagger-spec.json index 4f0d2e2..9d03aa2 100644 --- a/docs/swagger/swagger-spec.json +++ b/docs/swagger/swagger-spec.json @@ -1961,7 +1961,7 @@ ] } }, - "/pay-periods/bundle/current-and-all": { + "/pay-periods/current-and-all": { "get": { "operationId": "PayPeriodsController_getCurrentAndAll", "parameters": [ diff --git a/src/modules/customers/services/customers.service.ts b/src/modules/customers/services/customers.service.ts index df803e4..6163552 100644 --- a/src/modules/customers/services/customers.service.ts +++ b/src/modules/customers/services/customers.service.ts @@ -48,16 +48,11 @@ export class CustomersService { where: { id }, include: { user: true }, }); - if(!customer) { - throw new NotFoundException(`Customer #${id} not found`); - } + if(!customer) throw new NotFoundException(`Customer #${id} not found`); return customer; } -async update( - id: number, - dto: UpdateCustomerDto, -): Promise { +async update(id: number,dto: UpdateCustomerDto): Promise { const customer = await this.findOne(id); const { diff --git a/src/modules/pay-periods/controllers/pay-periods.controller.ts b/src/modules/pay-periods/controllers/pay-periods.controller.ts index b1e3011..c87c658 100644 --- a/src/modules/pay-periods/controllers/pay-periods.controller.ts +++ b/src/modules/pay-periods/controllers/pay-periods.controller.ts @@ -25,7 +25,7 @@ export class PayPeriodsController { return this.queryService.findAll(); } - @Get('bundle/current-and-all') + @Get('current-and-all') @ApiOperation({summary: 'Return current pay period and the full list'}) @ApiQuery({name: 'date', required:false, example: '2025-08-11', description:'Override for resolving the current period'}) @ApiResponse({status: 200, description:'Find current and all pay periods', type: PayPeriodBundleDto})