From bafcc75b248f47c2bdafb21231f33142fdc25e25 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 24 Oct 2021 15:32:22 +0200 Subject: [PATCH] force updates --- utils/models/student.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/models/student.js b/utils/models/student.js index b164e3b..245c55a 100644 --- a/utils/models/student.js +++ b/utils/models/student.js @@ -12,8 +12,8 @@ class Student extends Model { /** @type {string} */ classId; - async setClassID(classId) { - if(this.classId === classId) return; + async setClassID(classId, force) { + if(this.classId === classId && !force) return; this.classId = classId; await this.save({ fields: "classId"}); const [groups, mainGroup] = await Promise.all([