rodrigogs/xvideos

View on GitHub
lib/api/videos/fresh/createRefreshFunction.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const refreshFunction = (currentPage) => () => {
  const fresh = require('./fresh');
  return fresh(currentPage);
};

const createRefreshFunction = (pagination) => {
  const { page } = pagination;
  return refreshFunction(page);
};

module.exports = createRefreshFunction;