Fix other bugs in syncer.

This commit is contained in:
Yang Luo
2021-12-25 00:05:54 +08:00
parent e79e3c36d0
commit 4b4c9be71b
5 changed files with 23 additions and 26 deletions

View File

@ -24,7 +24,7 @@ func (syncer *Syncer) getUserMap() ([]*User, map[string]*User) {
m := map[string]*User{}
for _, user := range users {
m[user.Name] = user
m[user.Id] = user
}
return users, m
}