members database import.

This commit is contained in:
Miroslav Šedivý
2020-12-05 23:31:41 +01:00
parent 9f452aeb01
commit b24c217509
2 changed files with 20 additions and 8 deletions
internal/session

@ -58,10 +58,9 @@ func (manager *MembersDatabaseCtx) Delete(id string) error {
return nil
}
func (manager *MembersDatabaseCtx) Select(id string) (types.MemberProfile, bool) {
func (manager *MembersDatabaseCtx) Select() map[string]types.MemberProfile {
manager.mu.Lock()
defer manager.mu.Unlock()
profile, ok := manager.profiles[id]
return profile, ok
return manager.profiles
}