handle error on create user

This commit is contained in:
2024-10-29 15:42:36 +07:00
parent 9423a36eeb
commit b5d23ac930
6 changed files with 145 additions and 83 deletions

View File

@@ -0,0 +1,23 @@
import * as DateTimeUtils from '../common/utils/datetime.utils';
import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/Prisma/prisma.service';
import { Schedule } from '@prisma/client';
@Injectable()
export class ScheduleService {
constructor(private readonly prisma: PrismaService) {}
async createSchedule(schedule: Schedule) {
// generate Slot By config
// const slots = await this.generateSlots(schedule.config);
// return this.prisma.schedule.createManyAndReturn({
// data: schedule,
// });
// }
// async getSchedule(id: string) {
// return this.prisma.schedule.findUnique({
// where: { id },
// });
}
}