From 648e0894d84d01b1748dbfcfbd7e6b9f2a88e200 Mon Sep 17 00:00:00 2001 From: Matt Hanley Date: Wed, 25 May 2022 15:27:59 +0100 Subject: [PATCH] Removed unused getNewsletterRelations method refs https://github.com/TryGhost/Ghost/pull/14870 refs https://github.com/TryGhost/Members/pull/400 - Since the ref'd PRs, this method is no longer used --- core/server/models/member.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/server/models/member.js b/core/server/models/member.js index 53b13307c3..f0ebe4bce9 100644 --- a/core/server/models/member.js +++ b/core/server/models/member.js @@ -377,18 +377,6 @@ const Member = ghostBookshelf.Model.extend({ return query; }, - getNewsletterRelations(data, unfilteredOptions = {}) { - const query = ghostBookshelf.knex('members_newsletters') - .select('id') - .whereIn('member_id', data.memberIds); - - if (unfilteredOptions.transacting) { - query.transacting(unfilteredOptions.transacting); - } - - return query; - }, - fetchAllSubscribed(unfilteredOptions = {}) { // we use raw queries instead of model relationships because model hydration is expensive const query = ghostBookshelf.knex('members_newsletters')