rodrigogs/xvideos

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

Summary

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

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

module.exports = createRefreshFunction;