mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
Removed unused stripe_customers relationship
no-issue
This commit is contained in:
parent
99681e692a
commit
6b4e6fb400
@ -1,24 +1,7 @@
|
||||
const ghostBookshelf = require('./base');
|
||||
|
||||
const Member = ghostBookshelf.Model.extend({
|
||||
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']);
|
||||
}
|
||||
tableName: 'members'
|
||||
});
|
||||
|
||||
const Members = ghostBookshelf.Collection.extend({
|
||||
|
Loading…
Reference in New Issue
Block a user