startsAt and endsAt are validated independently with @IsDate(), but nothing checks their relative order, so an event with endsAt before (or equal to) startsAt is silently accepted.
Suggested fix: Add validation (custom decorator or a manual check in EventsService.create()) that rejects endsAt <= startsAt with a BadRequestException.
startsAtandendsAtare validated independently with@IsDate(), but nothing checks their relative order, so an event withendsAtbefore (or equal to)startsAtis silently accepted.Suggested fix: Add validation (custom decorator or a manual check in
EventsService.create()) that rejectsendsAt <= startsAtwith aBadRequestException.