summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue_timetrack.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/issue_timetrack.go')
-rw-r--r--routers/web/repo/issue_timetrack.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/repo/issue_timetrack.go b/routers/web/repo/issue_timetrack.go
index 0809acc2e4..28274a7f7b 100644
--- a/routers/web/repo/issue_timetrack.go
+++ b/routers/web/repo/issue_timetrack.go
@@ -9,6 +9,7 @@ import (
"time"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/modules/web"
@@ -63,7 +64,7 @@ func DeleteTime(c *context.Context) {
t, err := models.GetTrackedTimeByID(c.ParamsInt64(":timeid"))
if err != nil {
- if models.IsErrNotExist(err) {
+ if db.IsErrNotExist(err) {
c.NotFound("time not found", err)
return
}