refactor: rename function

This commit is contained in:
supalarry 2024-01-05 14:34:30 +02:00
parent adacba6d38
commit 0ab39dd0e1
2 changed files with 2 additions and 5 deletions

View File

@ -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,

View File

@ -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(