From 73ebb9ab29e5234d39ae2074632501520f1a5d42 Mon Sep 17 00:00:00 2001 From: Miko Keskimaki Date: Thu, 21 Dec 2023 09:29:11 +0200 Subject: [PATCH] Temporary fix to not break updateCoursesAndTeacherFeedbackTargets --- src/updater/mangleData.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/updater/mangleData.js b/src/updater/mangleData.js index 447b1db..9cff5b0 100644 --- a/src/updater/mangleData.js +++ b/src/updater/mangleData.js @@ -38,7 +38,8 @@ const mangleData = async (url, limit, handler, since = null) => { let requestStart = null let loopStart = Date.now() - let offset = Number(await redis.get(offsetKey)) + // TODO: remove this once updateCoursesAndTeacherFeedbackTargets is fixed + let offset = url === 'course_unit_realisations_with_course_units' ? 0 : Number(await redis.get(offsetKey)) let count = 0 let currentData = null let nextData = null