api/modules/publishedFiles/cache.js
Function _getAllDataFromDB
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getAllDataFromDB(metaKey, bufferKeyPrefix, publishedProjectId) {
const publishedFiles = [];
const publishedFilesMeta = [];
// Get all the metadata and buffers from the db with one query
Function run
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
run(publishedProjectId, next) {
if (!this.cache) {
return PublishedFiles.query({
where: {
published_id: publishedProjectId