[resumes][feat] add another threshold to make resumes reviewed

This commit is contained in:
Keane Chan
2022-10-28 12:01:43 +08:00
parent 0132b298b9
commit 04e83f6732

View File

@ -79,7 +79,10 @@ export default function ResumeCommentsForm({
setShowCommentsForm(false);
const { prevCount, newCount } = data;
// Auto mark resume as resolved once the total comments passes the 5 threshold
if (newCount >= 5 && prevCount < 5) {
if (
(newCount >= 5 && prevCount < 5) ||
(newCount >= 15 && prevCount < 15)
) {
resolveMutation.mutate({
id: resumeId,
val: true,