Include uploaded files in search results endpoint
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-10-14 13:59:25 -05:00
parent 9beb0d2c3a
commit 4686e9d37c
3 changed files with 52 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ class FileGroup extends Model {
}
// Static and instance methods can go here
get page() {
const Page = require('./Page.model')
return this.belongs_to_one(Page, 'PageId', 'UUID')
}
}
module.exports = exports = FileGroup