Log startup errors and only try to start users who have a token
This commit is contained in:
@@ -38,7 +38,7 @@ func (uq *UserQuery) GetByID(id string) *User {
|
||||
}
|
||||
|
||||
func (uq *UserQuery) GetAll() []*User {
|
||||
rows, err := uq.db.Query(`SELECT mxid, id, management_room, token FROM "user"`)
|
||||
rows, err := uq.db.Query(`SELECT mxid, id, management_room, token FROM "user" WHERE token IS NOT NULL`)
|
||||
if err != nil || rows == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user