fix(submissions): only notify submittors if rating is done
This commit is contained in:
parent
a14152d1bc
commit
8e0c379c71
@ -522,7 +522,7 @@ sinkSubmission userId mExists isUpdate = do
|
|||||||
|
|
||||||
mapM_ throwM $ validateRating sheetType r'
|
mapM_ throwM $ validateRating sheetType r'
|
||||||
|
|
||||||
when (isNothing submissionRatingTime) $ tellSt mempty { sinkSubmissionNotifyRating = Any True }
|
when (submissionRatingDone r') $ tellSt mempty { sinkSubmissionNotifyRating = Any True }
|
||||||
lift $ update submissionId
|
lift $ update submissionId
|
||||||
[ SubmissionRatingPoints =. ratingPoints
|
[ SubmissionRatingPoints =. ratingPoints
|
||||||
, SubmissionRatingComment =. ratingComment
|
, SubmissionRatingComment =. ratingComment
|
||||||
|
|||||||
Reference in New Issue
Block a user