aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify/notifications.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/notify/notifications.go')
-rw-r--r--routers/api/v1/notify/notifications.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/notify/notifications.go b/routers/api/v1/notify/notifications.go
index 1821c30377..c707cf4524 100644
--- a/routers/api/v1/notify/notifications.go
+++ b/routers/api/v1/notify/notifications.go
@@ -26,7 +26,7 @@ func NewAvailable(ctx *context.APIContext) {
}
func getFindNotificationOptions(ctx *context.APIContext) *models.FindNotificationOptions {
- before, since, err := utils.GetQueryBeforeSince(ctx)
+ before, since, err := context.GetQueryBeforeSince(ctx.Context)
if err != nil {
ctx.Error(http.StatusUnprocessableEntity, "GetQueryBeforeSince", err)
return nil