0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removed unnecessary bookshelf-relations config in EmailRecipient model

no issue

- we don't use any of the `bookshelf-relations` plugin's added features for the `EmailRecipient` model so there's no need to opt in to it
This commit is contained in:
Kevin Ansfield 2021-01-05 15:28:30 +00:00
parent ab834b2615
commit 93fa9b4d9e

View file

@ -4,12 +4,6 @@ const EmailRecipient = ghostBookshelf.Model.extend({
tableName: 'email_recipients',
hasTimestamps: false,
relationships: ['email'],
relationshipBelongsTo: {
email: 'emails'
},
email() {
return this.belongsTo('Email', 'email_id');
},