v1 of deadline feature

This commit is contained in:
rotimi-best
2021-09-23 16:39:38 +03:00
parent 5c9b6b9ae8
commit 97cef195f9
7 changed files with 49 additions and 15 deletions
+4 -1
View File
@@ -178,16 +178,19 @@ export async function upsertExercise(questionnaire, exerciseId) {
questions,
title,
description,
due_by,
is_title_dirty,
is_description_dirty,
is_due_by_dirty,
} = questionnaire;
if (is_description_dirty || is_title_dirty) {
if (is_description_dirty || is_title_dirty || is_due_by_dirty) {
await supabase
.from('exercise')
.update({
title,
description,
due_by,
})
.match({ id: exerciseId });
}