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": {
"operationId": "PayPeriodsController_getCurrentAndAll",
"parameters": [

View File

@ -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<Customers> {
async update(id: number,dto: UpdateCustomerDto): Promise<Customers> {
const customer = await this.findOne(id);
const {

View File

@ -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})