refactor(variables): renamed variables to use snake_case

This commit is contained in:
Matthieu Haineault 2025-08-20 15:33:48 -04:00
parent 3c8c999bfe
commit d1fe7868f9
3 changed files with 4 additions and 9 deletions

View File

@ -1961,7 +1961,7 @@
] ]
} }
}, },
"/pay-periods/bundle/current-and-all": { "/pay-periods/current-and-all": {
"get": { "get": {
"operationId": "PayPeriodsController_getCurrentAndAll", "operationId": "PayPeriodsController_getCurrentAndAll",
"parameters": [ "parameters": [

View File

@ -48,16 +48,11 @@ export class CustomersService {
where: { id }, where: { id },
include: { user: true }, include: { user: true },
}); });
if(!customer) { if(!customer) throw new NotFoundException(`Customer #${id} not found`);
throw new NotFoundException(`Customer #${id} not found`);
}
return customer; return customer;
} }
async update( async update(id: number,dto: UpdateCustomerDto): Promise<Customers> {
id: number,
dto: UpdateCustomerDto,
): Promise<Customers> {
const customer = await this.findOne(id); const customer = await this.findOne(id);
const { const {

View File

@ -25,7 +25,7 @@ export class PayPeriodsController {
return this.queryService.findAll(); return this.queryService.findAll();
} }
@Get('bundle/current-and-all') @Get('current-and-all')
@ApiOperation({summary: 'Return current pay period and the full list'}) @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'}) @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}) @ApiResponse({status: 200, description:'Find current and all pay periods', type: PayPeriodBundleDto})