diff options
Diffstat (limited to 'models/action_list.go')
-rw-r--r-- | models/action_list.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/action_list.go b/models/action_list.go index ce621753a4..c180a82552 100644 --- a/models/action_list.go +++ b/models/action_list.go @@ -10,6 +10,7 @@ import ( "code.gitea.io/gitea/models/db" repo_model "code.gitea.io/gitea/models/repo" user_model "code.gitea.io/gitea/models/user" + "code.gitea.io/gitea/modules/container" ) // ActionList defines a list of actions @@ -22,7 +23,7 @@ func (actions ActionList) getUserIDs() []int64 { userIDs[action.ActUserID] = struct{}{} } } - return keysInt64(userIDs) + return container.KeysInt64(userIDs) } func (actions ActionList) loadUsers(e db.Engine) (map[int64]*user_model.User, error) { @@ -52,7 +53,7 @@ func (actions ActionList) getRepoIDs() []int64 { repoIDs[action.RepoID] = struct{}{} } } - return keysInt64(repoIDs) + return container.KeysInt64(repoIDs) } func (actions ActionList) loadRepositories(e db.Engine) error { |