0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

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
This commit is contained in:
Matt Hanley 2022-05-25 15:27:59 +01:00 committed by Matt Hanley
parent f7496880f0
commit 648e0894d8

View file

@ -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')