aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/stopwatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues/stopwatch.go')
-rw-r--r--models/issues/stopwatch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go
index e7ac1314e9..0a7ad41f9c 100644
--- a/models/issues/stopwatch.go
+++ b/models/issues/stopwatch.go
@@ -63,7 +63,7 @@ func getStopwatch(ctx context.Context, userID, issueID int64) (sw *Stopwatch, ex
Where("user_id = ?", userID).
And("issue_id = ?", issueID).
Get(sw)
- return
+ return sw, exists, err
}
// UserIDCount is a simple coalition of UserID and Count
@@ -130,7 +130,7 @@ func HasUserStopwatch(ctx context.Context, userID int64) (exists bool, sw *Stopw
exists, err = db.GetEngine(ctx).
Where("user_id = ?", userID).
Get(sw)
- return
+ return exists, sw, err
}
// FinishIssueStopwatchIfPossible if stopwatch exist then finish it otherwise ignore