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": {
|
"get": {
|
||||||
"operationId": "PayPeriodsController_getCurrentAndAll",
|
"operationId": "PayPeriodsController_getCurrentAndAll",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user