diff --git a/api.js b/api.js index 1187ad3..aa92bd8 100644 --- a/api.js +++ b/api.js @@ -214,7 +214,7 @@ class School { async loadSchoolFromToml(toml) { if (!this.conf.get('school')) { - const isSignAtHome = toml.addr + const isSignAtHome = toml.users[0].addr const school = await this.schoolApi(toml.school, isSignAtHome) if (!isSignAtHome) school.addr = await this.schoolAddr(school.name) this.conf.set('school', school)