diff options
author | 6543 <6543@obermui.de> | 2023-09-29 15:04:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 15:04:14 +0200 |
commit | 2a2b0cb1d2f7de9dcdb8e84250bfb9ef501fd748 (patch) | |
tree | 1c5d051eb9c7a3472ad00ab79d9674d5c4f5f57b /models/issues/tracked_time.go | |
parent | More `db.DefaultContext` refactor (#27265) (diff) | |
download | forgejo-2a2b0cb1d2f7de9dcdb8e84250bfb9ef501fd748.tar.xz forgejo-2a2b0cb1d2f7de9dcdb8e84250bfb9ef501fd748.zip |
rename TotalTimes() to TotalTimesForEachUser() (#27261)
make function name more descriptive as it would otherwise imply it could
be used for e.g. #26672 too ...
---
*Sponsored by Kithara Software GmbH*
Diffstat (limited to 'models/issues/tracked_time.go')
-rw-r--r-- | models/issues/tracked_time.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/tracked_time.go b/models/issues/tracked_time.go index 58c6b775f0..c51df627ac 100644 --- a/models/issues/tracked_time.go +++ b/models/issues/tracked_time.go @@ -198,8 +198,8 @@ func addTime(ctx context.Context, user *user_model.User, issue *Issue, amount in return tt, db.Insert(ctx, tt) } -// TotalTimes returns the spent time in seconds for each user by an issue -func TotalTimes(options *FindTrackedTimesOptions) (map[*user_model.User]int64, error) { +// TotalTimesForEachUser returns the spent time in seconds for each user by an issue +func TotalTimesForEachUser(options *FindTrackedTimesOptions) (map[*user_model.User]int64, error) { trackedTimes, err := GetTrackedTimes(db.DefaultContext, options) if err != nil { return nil, err |