Spinner, Attendance bug fix, Marks

This commit is contained in:
rotimi-best
2021-09-11 19:27:11 +03:00
parent cc1cd9d48b
commit 8c107b0c40
10 changed files with 284 additions and 57 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ export async function fetchSubmission({ courseId, exerciseId, submittedBy }) {
});
}
export async function updateSubmission({ id, status_id, total }) {
export async function updateSubmission({ id, status_id, total }, otherArgs) {
const toUpdate = {
status_id,
};
@@ -58,7 +58,7 @@ export async function updateSubmission({ id, status_id, total }) {
toUpdate.total = total;
}
return supabase.from('submission').update(toUpdate).match({ id });
return supabase.from('submission').update(toUpdate, otherArgs).match({ id });
}
export async function updateQuestionAnswer(update, match) {