Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/rework-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
prgres committed May 19, 2024
2 parents 45e812c + 1bad962 commit 9afd25d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ func (m *Api) GetSpaces(teamId string) ([]clickup.Space, error) {
}
m.logger.Debugf("Found %d spaces for team: %s", len(spaces), teamId)

// if len(spaces) > 0 {
m.Cache.Set(cacheNamespace, teamId, spaces)
// }

return spaces, nil
}
Expand Down Expand Up @@ -102,9 +100,7 @@ func (m *Api) GetTeams() ([]clickup.Team, error) {
}
m.logger.Debugf("Found %d teams", len(teams))

// if len(teams) == 0 {
m.Cache.Set(cacheNamespace, "teams", teams)
// }

return teams, nil
}
Expand Down Expand Up @@ -133,9 +129,7 @@ func (m *Api) GetFolders(spaceId string) ([]clickup.Folder, error) {
}
m.logger.Debugf("Found %d folders for space: %s", len(folders), spaceId)

// if len(folders) > 0 {
m.Cache.Set(cacheNamespace, spaceId, folders)
// }

return folders, nil
}
Expand Down Expand Up @@ -164,9 +158,7 @@ func (m *Api) GetLists(folderId string) ([]clickup.List, error) {
}
m.logger.Debugf("Found %d lists for folder: %s", len(lists), folderId)

// if len(lists) > 0 {
m.Cache.Set(cacheNamespace, folderId, lists)
// }

return lists, nil
}
Expand Down Expand Up @@ -224,9 +216,7 @@ func (m *Api) GetTasksFromList(listId string) ([]clickup.Task, error) {
}
m.logger.Debugf("Found %d tasks in list %s", len(tasks), listId)

// if len(tasks) > 0 {
m.Cache.Set(cacheNamespace, listId, tasks)
// }

return tasks, nil
}
Expand Down Expand Up @@ -255,9 +245,7 @@ func (m *Api) GetTasksFromView(viewId string) ([]clickup.Task, error) {
}
m.logger.Debugf("Found %d tasks in view %s", len(tasks), viewId)

// if len(tasks) > 0 {
m.Cache.Set(cacheNamespace, viewId, tasks)
// }

return tasks, nil
}
Expand Down Expand Up @@ -286,9 +274,7 @@ func (m *Api) GetViewsFromFolder(folderId string) ([]clickup.View, error) {
}
m.logger.Debugf("Found %d views in folder %s", len(views), folderId)

// if len(views) > 0 {
m.Cache.Set(cacheNamespace, folderId, views)
// }

return views, nil
}
Expand Down Expand Up @@ -317,9 +303,7 @@ func (m *Api) GetViewsFromList(listId string) ([]clickup.View, error) {
}
m.logger.Debugf("Found %d views in folder %s", len(views), listId)

// if len(views) > 0 {
m.Cache.Set(cacheNamespace, listId, views)
// }

return views, nil
}
Expand Down Expand Up @@ -349,9 +333,7 @@ func (m *Api) GetViewsFromSpace(spaceId string) ([]clickup.View, error) {
}
m.logger.Debugf("Found %d views in space %s", len(views), spaceId)

// if len(views) > 0 {
m.Cache.Set(cacheNamespace, spaceId, views)
// }

return views, nil
}
Expand Down

0 comments on commit 9afd25d

Please sign in to comment.