Refactor CollaborationSession and Document schemas to improve code clarity and functionality. Enhance error handling in collaboration session retrieval and update logic. Introduce new request sync events in Document schema and update Minio service for document page management. Adjust cron job to use current date for future schedule date checks. Update user schema for better error handling and improve service descriptions in order schema. Remove global decorators from Workshop modules for better module encapsulation.

This commit is contained in:
2024-11-27 06:48:49 +07:00
parent 51bafcfe29
commit 77f44a891f
11 changed files with 176 additions and 113 deletions

View File

@@ -204,7 +204,7 @@ export class OrderSchema extends PothosSchema {
const paymentData = await this.payosService.createPayment({
orderCode: paymentCode,
amount: service.price,
description: service.name,
description: service.name.split(' ').slice(0, 20).join(' '),
buyerName: ctx.http.me?.name ?? '',
buyerEmail: ctx.http.me?.email ?? '',
returnUrl: `${process.env.PAYOS_RETURN_URL}`.replace('<serviceId>', service.id),