We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d39e77 commit 70e473aCopy full SHA for 70e473a
1 file changed
src/backend/src/services/calendar.services.ts
@@ -271,6 +271,8 @@ export default class CalendarService {
271
zoomLink?: string,
272
description?: string
273
): Promise<Event> {
274
+ if (!title.trim()) throw new HttpException(400, 'Title cannot be only whitespace');
275
+
276
// Validate eventTypeId
277
const foundEventType = await prisma.event_Type.findUnique({
278
where: { eventTypeId }
@@ -592,6 +594,8 @@ export default class CalendarService {
592
594
593
595
596
597
598
599
// validate eventId
600
const foundEvent = await prisma.event.findUnique({
601
where: { eventId },
0 commit comments