Include uploaded files in search results endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user