toi cam thay minh la sieu nhan

This commit is contained in:
2024-11-15 18:18:37 +07:00
parent ff45e69efd
commit 7e4a4283e6
12 changed files with 499 additions and 12 deletions

View File

@@ -173,6 +173,7 @@ export class MessageSchema extends PothosSchema {
if (args.input.content.length > 1024) {
throw new Error('Content cannot be longer than 1024 characters')
}
args.input.context = messageContext
const message = await this.prisma.message.create({
...query,
data: args.input,