mirror of
https://github.com/strapi/strapi.git
synced 2025-07-26 02:20:32 +00:00
14 lines
186 B
JavaScript
14 lines
186 B
JavaScript
'use strict';
|
|
|
|
module.exports =
|
|
(...methods) =>
|
|
async (data) => {
|
|
let res = data;
|
|
|
|
for (const method of methods) {
|
|
res = await method(res);
|
|
}
|
|
|
|
return res;
|
|
};
|