mirror of
https://github.com/strapi/strapi.git
synced 2025-09-16 03:48:22 +00:00
feat: use meta instead of pagination
This commit is contained in:
parent
1dcac25f6e
commit
ea5f6252d7
@ -129,11 +129,8 @@ module.exports = {
|
||||
|
||||
ctx.body = {
|
||||
data: await mapAsync(workflows, sanitizeOutput),
|
||||
pagination: {
|
||||
page: 1,
|
||||
pageCount: 1,
|
||||
pageSize: workflows.length,
|
||||
total: workflows.length,
|
||||
meta: {
|
||||
workflowCount: workflows.length,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user