remove 1024 limit

This commit is contained in:
unclebonn
2024-11-20 13:35:12 +07:00
parent cf8051b8a4
commit ef3025381b

View File

@@ -150,10 +150,6 @@ export class MessageSchema extends PothosSchema {
throw new Error('Content cannot be empty')
}
args.input.context = messageContext
// check if content is longer than 1024 characters
if (args.input.content.length > 1024) {
throw new Error('Content cannot be longer than 1024 characters')
}
args.input.context = messageContext
const lastActivity = DateTimeUtils.now()
const message = await this.prisma.$transaction(async (tx) => {