期限切れの繰り返し課題が停止中と表示されないバグを修正
This commit is contained in:
1 parent
45bf048c47
commit
080bd1f8d7
1 file changed
+4
-1
@@ -76,7 +76,10 @@ func (r *RecurringAssignmentRepository) FindDueForGeneration() ([]models.Recurri
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if shouldGenerate {
|
if !shouldGenerate {
|
||||||
|
rec.IsActive = false
|
||||||
|
r.db.Save(&rec)
|
||||||
|
} else {
|
||||||
result = append(result, rec)
|
result = append(result, rec)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user