Fixed creation of EmailBatch and EmailRecipient collections

no-issue
This commit is contained in:
Fabien O'Carroll 2020-10-14 11:50:16 +01:00 committed by Fabien 'egg' O'Carroll
parent 2cf5ca546b
commit 0fd0527da0
2 changed files with 2 additions and 2 deletions

View File

@ -26,5 +26,5 @@ const EmailBatches = ghostBookshelf.Collection.extend({
module.exports = {
EmailBatch: ghostBookshelf.model('EmailBatch', EmailBatch),
EmailBatches: ghostBookshelf.model('EmailBatches', EmailBatches)
EmailBatches: ghostBookshelf.collection('EmailBatches', EmailBatches)
};

View File

@ -21,5 +21,5 @@ const EmailRecipients = ghostBookshelf.Collection.extend({
module.exports = {
EmailRecipient: ghostBookshelf.model('EmailRecipient', EmailRecipient),
EmailRecipients: ghostBookshelf.model('EmailRecipients', EmailRecipients)
EmailRecipients: ghostBookshelf.collection('EmailRecipients', EmailRecipients)
};