From d962adb08c6db6afa25c89999c099e7b9ff6d3b5 Mon Sep 17 00:00:00 2001 From: Veikkosuhonen Date: Tue, 23 Apr 2024 11:59:52 +0300 Subject: [PATCH] Add a comment about fkce --- src/updater/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/updater/index.js b/src/updater/index.js index 86839af..4b2d129 100644 --- a/src/updater/index.js +++ b/src/updater/index.js @@ -19,7 +19,9 @@ const JOB_TYPE = 'NIGHTLY' const runUpdater = async () => { // Dependencies between updating, may result in failure if order not kept - await updateUsers() + await updateUsers() + // Note: if importer updates data after updateUsers but before updateStudentFeedbackTargets, you may get a foreign key constraint error. + // Its not a huge problem, just run the updater again or wait for the next cron. await updateOrganisations() await updateCoursesAndTeacherFeedbackTargets() await updateStudentFeedbackTargets()