mirror of
https://github.com/danbulant/ssps-bot
synced 2026-05-22 05:28:47 +00:00
oprava chyby
This commit is contained in:
parent
e23805c4c6
commit
bfbc8716fa
1 changed files with 1 additions and 8 deletions
|
|
@ -5,17 +5,10 @@ const ssps = require("../ssps-server");
|
|||
const Group = require("./group");
|
||||
|
||||
class Student extends Model {
|
||||
/** @type {string} */
|
||||
id;
|
||||
/** @type {string} */
|
||||
name;
|
||||
/** @type {string} */
|
||||
classId;
|
||||
|
||||
async setClassID(classId, force) {
|
||||
if(this.classId === classId && !force) return;
|
||||
this.classId = classId;
|
||||
await this.save({ fields: "classId"});
|
||||
await this.save({ fields: ["classId"] });
|
||||
const [groups, mainGroup] = await Promise.all([
|
||||
this.getGroups(),
|
||||
Group.findOne({
|
||||
|
|
|
|||
Loading…
Reference in a new issue