Merge branch 'main' of https://github.com/EPESS/epess-web-backend
This commit is contained in:
@@ -150,10 +150,6 @@ export class MessageSchema extends PothosSchema {
|
|||||||
throw new Error('Content cannot be empty')
|
throw new Error('Content cannot be empty')
|
||||||
}
|
}
|
||||||
args.input.context = messageContext
|
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
|
args.input.context = messageContext
|
||||||
const lastActivity = DateTimeUtils.now()
|
const lastActivity = DateTimeUtils.now()
|
||||||
const message = await this.prisma.$transaction(async (tx) => {
|
const message = await this.prisma.$transaction(async (tx) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user