feat: use meta instead of pagination

This commit is contained in:
Marc-Roig 2023-07-07 10:06:15 +02:00
parent 1dcac25f6e
commit ea5f6252d7
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249

View File

@ -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,
},
};
},