fix: objection 2 changes

This commit is contained in:
NGPixel committed 2020-01-24 19:21:17 -05:00
1 parent e7b5457354
commit 988ba3f616
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = {
passport.deserializeUser(async (id, done) => {
try {
const user = await WIKI.models.users.query().findById(id).modifyEager('groups', builder => {
const user = await WIKI.models.users.query().findById(id).withGraphFetched('groups').modifyGraph('groups', builder => {
builder.select('groups.id', 'permissions')
})
if (user) {