fix: objection 2 changes

This commit is contained in:
NGPixel
2020-01-24 19:20:53 -05:00
parent e7b5457354
commit 988ba3f616
4 changed files with 7 additions and 7 deletions

View File

@@ -702,8 +702,8 @@ module.exports = class Page extends Model {
creatorEmail: 'creator.email'
}
])
.joinRelation('author')
.joinRelation('creator')
.joinRelated('author')
.joinRelated('creator')
.eagerAlgorithm(Model.JoinEagerAlgorithm)
.eager('tags(selectTags)', {
selectTags: builder => {