diff --git a/services/graphql-server/src/graphql/resolvers/email/schedule.js b/services/graphql-server/src/graphql/resolvers/email/schedule.js index 7f0ce7a9c..116089aeb 100644 --- a/services/graphql-server/src/graphql/resolvers/email/schedule.js +++ b/services/graphql-server/src/graphql/resolvers/email/schedule.js @@ -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; }, }, /**