feat: enhance CronService and OrderSchema with new scheduling and authorization features
- Removed unnecessary logging from CronService methods to streamline execution. - Introduced a new cron job in CronService to check if all schedule dates are completed and update the schedule status accordingly. - Added a new query in OrderSchema to retrieve completed orders for moderators, including authorization checks for user roles. - Updated PersonalMilestoneSchema to allow for creating multiple personal milestones with necessary input fields. These changes improve the scheduling logic and enhance the GraphQL API's authorization mechanisms, ensuring better user experience and state management.
This commit is contained in:
@@ -112,7 +112,7 @@ export class PersonalMilestoneSchema extends PothosSchema {
|
||||
required: true,
|
||||
}),
|
||||
data: t.arg({
|
||||
type: [this.builder.generator.getCreateManyInput('PersonalMilestone')],
|
||||
type: [this.builder.generator.getCreateManyInput('PersonalMilestone', ['schedule', 'user'])],
|
||||
description: 'The data for the personal milestone.',
|
||||
required: true,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user