lib/api/videos/fresh/createNextFunction.js
const nextFunction = (currentPage) => () => {
const fresh = require('./fresh');
const next = currentPage + 1;
return fresh({ page: next });
};
const createNextFunction = (pagination) => {
const { page } = pagination;
return nextFunction(page);
};
module.exports = createNextFunction;