update resume and service
This commit is contained in:
@@ -8,16 +8,16 @@ import { Schedule } from '@prisma/client';
|
||||
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 },
|
||||
// });
|
||||
}
|
||||
// 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 },
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -74,6 +74,12 @@ export class UserSchema extends PothosSchema {
|
||||
sendingMessage: t.relation('sendingMessage', {
|
||||
description: 'The sending message of the user.',
|
||||
}),
|
||||
resume: t.relation('resume', {
|
||||
description: 'The resume of the user.',
|
||||
}),
|
||||
service: t.relation('service', {
|
||||
description: 'The service of the user.',
|
||||
}),
|
||||
center: t.relation('center', {
|
||||
description: 'The center of the user.',
|
||||
}),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// export class ConfigConstant {
|
||||
// static SLOT_DURATION = 60;
|
||||
// static SLOT_BREAK_DURATION = 15;
|
||||
// static SLOT_DURATION: number = 60;
|
||||
// static SLOT_BREAK_DURATION: number = 15;
|
||||
// static MID_DAY_BREAK_TIME_START: Date = new Date().setHours(12, 0, 0, 0);
|
||||
// static MID_DAY_BREAK_TIME_END: Date = new Date().setHours(13, 0, 0, 0);
|
||||
// static SLOT_START_TIME: Date = new Date().setHours(8, 0, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user