This commit is contained in:
ston1th 2021-07-11 23:43:10 +02:00
commit 58caf0527e
3 changed files with 20 additions and 10 deletions

View file

@ -81,7 +81,11 @@ func (db *DB) UpdateSection(section string, members []string, user bool) error {
}
}
}
return db.store.Set(sectionPrefix+section, &core.Section{section, user, m})
return db.store.Set(sectionPrefix+section, &core.Section{
Name: section,
User: user,
Members: m,
})
}
func (db *DB) DeleteSection(section string) error {