mirror of
https://github.com/directus/directus.git
synced 2026-01-23 09:58:10 -05:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user