[Updater] Add missing models to tableToModel

This commit is contained in:
Valtteri Kantanen
2025-03-03 13:06:19 +02:00
parent 22a5e58fe3
commit b17b714be2
@@ -7,13 +7,13 @@ const {
CourseType,
Student,
CourseProvider,
Semester,
Teacher,
CreditType,
Credit,
CreditTeacher,
StudyrightExtent,
ProgrammeModule,
SISStudyRightElement,
SISStudyRight,
} = require('../db/models')
const { logger } = require('../utils/logger')
const { lock } = require('../utils/redis')
@@ -26,11 +26,10 @@ const tableToModel = {
credit_teachers: CreditTeacher,
credit_types: CreditType,
organization: Organization,
semesters: Semester,
student: Student,
sis_study_right_elements: SISStudyRightElement,
sis_study_rights: SISStudyRight,
studyright_extents: StudyrightExtent,
teacher: Teacher,
programme_modules: ProgrammeModule,
}
const prePurge = async ({ tables, before }) => {