add hub get logic and part of client
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
func getUserById(ctx context.Context, userId uuid.UUID) (*types.User, error) {
|
||||
user, err := cache.GetUserById(userId)
|
||||
if err != nil {
|
||||
user = &types.User{Id: userId}
|
||||
user = &types.User{Id: userId, Hubs: make(map[uuid.UUID]*types.Hub)}
|
||||
err = postgresql.GetWholeUser(ctx, user)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user