Refactor Category and Center schemas to improve field descriptions and code clarity; update email templates for consistency in messaging. Add Redis service to CenterSchema for session management. Bump epess-database subproject commit reference to indicate changes. Clean up logging in ClerkService and ServiceSchema.

This commit is contained in:
2024-11-27 01:09:13 +07:00
parent c9435a6e04
commit 2581ca396f
11 changed files with 56 additions and 59 deletions

View File

@@ -364,7 +364,6 @@ export class ServiceSchema extends PothosSchema {
const mentorEmails = await prisma.user.findMany({
where: { id: { in: mentorIds } },
})
Logger.log(mentorEmails, 'ServiceSchema')
const emails = [centerOwner.email, ...mentorEmails.map((mentor) => mentor.email)]
if (args.approve) {
await this.mailService.sendTemplateEmail(emails, 'Thông báo về trạng thái dịch vụ', 'ServiceApproved', {