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
This commit is contained in:
tenebrius
2022-06-01 17:29:15 +08:00
committed by GitHub
parent 49d8975e5c
commit f7e70ede0c

View File

@@ -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();