Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary rebuild of output, newsletterEmailSchedules
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Mar 15, 2024
1 parent 4673062 commit 48bdeb7
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ module.exports = {
sort: scheduleSort,
projection,
});
const output = schedules.reduce((array, schedule) => {
const { content: contentItem, ...rest } = schedule;
if (contentItem && contentItem.oid) {
array.push({ ...rest, content: contentItem.oid });
}
return array;
}, []);
return output;
return schedules;
},
},
/**
Expand Down

0 comments on commit 48bdeb7

Please sign in to comment.