UPDATE: Try fix bug
All checks were successful
Build and Release / release (push) Successful in 1m8s
All checks were successful
Build and Release / release (push) Successful in 1m8s
This commit is contained in:
@@ -558,14 +558,13 @@ func (s *submissionService) UpdateSubmissionStatus(ctx context.Context, reviewer
|
||||
}
|
||||
|
||||
updatedSubmission, err := submissionRepo.Update(ctx, arg)
|
||||
|
||||
if err != nil {
|
||||
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to update submission status")
|
||||
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to update submission status: " + err.Error())
|
||||
}
|
||||
|
||||
err = tx.Commit(ctx)
|
||||
if err != nil {
|
||||
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to commit transaction")
|
||||
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to commit transaction: " + err.Error())
|
||||
}
|
||||
|
||||
if status == constants.StatusTypeApproved {
|
||||
|
||||
Reference in New Issue
Block a user