From f7e70ede0cfaebbe5fbc9145b62bb2d09d95339b Mon Sep 17 00:00:00 2001 From: tenebrius Date: Wed, 1 Jun 2022 17:29:15 +0800 Subject: [PATCH] Fixed wrong source of meta info for notifications api (#13660) When listing notifications, the getMetaForQuery was being called for `directus_presets` instead of `directus_notifications` in the notification controller. Probably left by copy pasting code --- api/src/controllers/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/controllers/notifications.ts b/api/src/controllers/notifications.ts index 507eae6b33..9b0a52910d 100644 --- a/api/src/controllers/notifications.ts +++ b/api/src/controllers/notifications.ts @@ -70,7 +70,7 @@ const readHandler = asyncHandler(async (req, res, next) => { result = await service.readByQuery(req.sanitizedQuery); } - const meta = await metaService.getMetaForQuery('directus_presets', req.sanitizedQuery); + const meta = await metaService.getMetaForQuery('directus_notifications', req.sanitizedQuery); res.locals.payload = { data: result, meta }; return next();