update api

This commit is contained in:
2024-11-24 15:12:05 +07:00
parent ccfe7bf1f1
commit 675460c39c
12 changed files with 234 additions and 45 deletions

View File

@@ -7,7 +7,7 @@ import {
} from '@smatch-corp/nestjs-pothos'
import { Builder } from '../Graphql/graphql.builder'
import { PrismaService } from '../Prisma/prisma.service'
import { ScheduleStatus } from '@prisma/client'
import { ScheduleDateStatus, ScheduleStatus } from '@prisma/client'
import { ScheduleService } from './schedule.service'
import { AppConfigService } from '../AppConfig/appconfig.service'
import { ScheduleConfigType } from './schedule'
@@ -130,6 +130,10 @@ export class ScheduleSchema extends PothosSchema {
type: 'DateTime',
nullable: false,
}),
status: t.expose('status', {
type: ScheduleDateStatus,
nullable: false,
}),
dayOfWeek: t.exposeInt('dayOfWeek', {
nullable: false,
}),