idk how to plan this out
This commit is contained in:
@@ -58,7 +58,7 @@ func getHubByIdStr(ctx context.Context, hubId string) (*types.Hub, error) {
|
||||
|
||||
hub, ok := cache.GetHubById(hubUuid)
|
||||
if !ok {
|
||||
hub = types.NewHub()
|
||||
hub = types.CreateHub()
|
||||
hub.Id = hubUuid
|
||||
if err := postgresql.GetWholeHub(ctx, hub); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user