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:
parent
f7496880f0
commit
648e0894d8
1 changed files with 0 additions and 12 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue