mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01:00
Removed unused stripe_customers relationship
no-issue
This commit is contained in:
parent
99681e692a
commit
6b4e6fb400
1 changed files with 1 additions and 18 deletions
|
@ -1,24 +1,7 @@
|
||||||
const ghostBookshelf = require('./base');
|
const ghostBookshelf = require('./base');
|
||||||
|
|
||||||
const Member = ghostBookshelf.Model.extend({
|
const Member = ghostBookshelf.Model.extend({
|
||||||
tableName: 'members',
|
tableName: 'members'
|
||||||
|
|
||||||
relationships: ['stripe_customers'],
|
|
||||||
relationshipBelongsTo: {
|
|
||||||
stripe_customers: 'members_stripe_customers'
|
|
||||||
},
|
|
||||||
|
|
||||||
permittedAttributes(...args) {
|
|
||||||
return ghostBookshelf.Model.prototype.permittedAttributes.apply(this, args).concat(this.relationships);
|
|
||||||
},
|
|
||||||
|
|
||||||
stripe_customers() {
|
|
||||||
return this.hasMany('MemberStripeCustomer', 'member_id');
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
permittedOptions(...args) {
|
|
||||||
return ghostBookshelf.Model.permittedOptions.apply(this, args).concat(['withRelated']);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const Members = ghostBookshelf.Collection.extend({
|
const Members = ghostBookshelf.Collection.extend({
|
||||||
|
|
Loading…
Reference in a new issue