feat: paginate workflow find

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

View File

@ -129,6 +129,12 @@ module.exports = {
ctx.body = {
data: await mapAsync(workflows, sanitizeOutput),
pagination: {
page: 1,
pageCount: 1,
pageSize: workflows.length,
total: workflows.length,
},
};
},
/**