refactor(variables): renamed variables to use snake_case
This commit is contained in:
parent
3c8c999bfe
commit
d1fe7868f9
|
|
@ -1961,7 +1961,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/pay-periods/bundle/current-and-all": {
|
||||
"/pay-periods/current-and-all": {
|
||||
"get": {
|
||||
"operationId": "PayPeriodsController_getCurrentAndAll",
|
||||
"parameters": [
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user