mirror of
https://github.com/danbulant/ssps-bot
synced 2026-06-16 04:41:16 +00:00
force updates
This commit is contained in:
parent
9e693cebdd
commit
bafcc75b24
1 changed files with 2 additions and 2 deletions
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in a new issue