mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-26 06:09:41 +00:00
fix: fix multiple submissions
This commit is contained in:
@ -34,10 +34,6 @@ export class TaskService {
|
||||
throw new BadRequestException('TASK.ALREADY_COMPLETED');
|
||||
}
|
||||
|
||||
if (task.submission && task.submission.status !== SubmissionStatus.REJECTED) {
|
||||
throw new BadRequestException('TASK.ALREADY_SUBMITTED');
|
||||
}
|
||||
|
||||
if (task.isProofRequired && !body.imageId) {
|
||||
throw new BadRequestException('TASK.PROOF_REQUIRED');
|
||||
}
|
||||
|
Reference in New Issue
Block a user