mirror of
https://github.com/danbulant/ssps-bot
synced 2026-06-24 17:11:50 +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} */
|
/** @type {string} */
|
||||||
classId;
|
classId;
|
||||||
|
|
||||||
async setClassID(classId) {
|
async setClassID(classId, force) {
|
||||||
if(this.classId === classId) return;
|
if(this.classId === classId && !force) return;
|
||||||
this.classId = classId;
|
this.classId = classId;
|
||||||
await this.save({ fields: "classId"});
|
await this.save({ fields: "classId"});
|
||||||
const [groups, mainGroup] = await Promise.all([
|
const [groups, mainGroup] = await Promise.all([
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue