refactor: rename function
This commit is contained in:
parent
adacba6d38
commit
0ab39dd0e1
|
@ -21,10 +21,7 @@ export class SchedulesController {
|
|||
@GetUser("id") userId: number,
|
||||
@Body() bodySchedule: CreateScheduleInput
|
||||
): Promise<ApiResponse> {
|
||||
const schedule = await this.schedulesService.createScheduleWithDefaultAvailabilities(
|
||||
userId,
|
||||
bodySchedule
|
||||
);
|
||||
const schedule = await this.schedulesService.createScheduleWithDefaultAvailability(userId, bodySchedule);
|
||||
|
||||
return {
|
||||
status: SUCCESS_STATUS,
|
||||
|
|
|
@ -10,7 +10,7 @@ export class SchedulesService {
|
|||
private readonly availabilitiesService: AvailabilitiesService
|
||||
) {}
|
||||
|
||||
async createScheduleWithDefaultAvailabilities(userId: number, schedule: CreateScheduleInput) {
|
||||
async createScheduleWithDefaultAvailability(userId: number, schedule: CreateScheduleInput) {
|
||||
const defaultAvailability = this.availabilitiesService.getDefaultAvailability();
|
||||
|
||||
const createdSchedule = await this.schedulesRepository.createScheduleWithAvailability(
|
||||
|
|
Loading…
Reference in New Issue
Block a user