lib/getLatestPosts.js
Function getLatestPosts
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getLatestPosts = (options) => {
return new Promise((resolve, reject) => {
options.offset = options.offset || 0;
options.limit = options.limit || 10;
options.include = options.include || [];
- Create a ticketCreate a ticket