Files
catmk2/task1/utils/updateRowToNotificationSent.js
louiscklaw e46f1afc57 update,
2025-02-01 02:00:23 +08:00

18 lines
432 B
JavaScript

function updateRowToNotificationSent(row) {
var output = { state: "init", debug: { row }, error: {} };
try {
var sheet = getSheetStudentProgress();
var payment_progress_cell = getCell(
sheet,
row,
COL_STUDENT_PROGRESS_PAYMENT_PROGRESS
);
writeCell(payment_progress_cell, CONST_NOTIFIED_ALREADY);
return;
} catch (error) {
output = { ...output, error };
console.log(error);
}
}