update resume and service
This commit is contained in:
@@ -8,8 +8,8 @@ import { Schedule } from '@prisma/client';
|
|||||||
export class ScheduleService {
|
export class ScheduleService {
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
async createSchedule(schedule: Schedule) {
|
// async createSchedule(schedule: Schedule) {
|
||||||
// generate Slot By config
|
// // generate Slot By config
|
||||||
// const slots = await this.generateSlots(schedule.config);
|
// const slots = await this.generateSlots(schedule.config);
|
||||||
// return this.prisma.schedule.createManyAndReturn({
|
// return this.prisma.schedule.createManyAndReturn({
|
||||||
// data: schedule,
|
// data: schedule,
|
||||||
@@ -19,5 +19,5 @@ export class ScheduleService {
|
|||||||
// return this.prisma.schedule.findUnique({
|
// return this.prisma.schedule.findUnique({
|
||||||
// where: { id },
|
// where: { id },
|
||||||
// });
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ export class UserSchema extends PothosSchema {
|
|||||||
sendingMessage: t.relation('sendingMessage', {
|
sendingMessage: t.relation('sendingMessage', {
|
||||||
description: 'The sending message of the user.',
|
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', {
|
center: t.relation('center', {
|
||||||
description: 'The center of the user.',
|
description: 'The center of the user.',
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// export class ConfigConstant {
|
// export class ConfigConstant {
|
||||||
// static SLOT_DURATION = 60;
|
// static SLOT_DURATION: number = 60;
|
||||||
// static SLOT_BREAK_DURATION = 15;
|
// 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_START: Date = new Date().setHours(12, 0, 0, 0);
|
||||||
// static MID_DAY_BREAK_TIME_END: Date = new Date().setHours(13, 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);
|
// static SLOT_START_TIME: Date = new Date().setHours(8, 0, 0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user