feat: source + history (wip)

This commit is contained in:
Nicolas Giard
2018-11-25 01:28:20 -05:00
parent 076aeaf749
commit 78ba895eee
17 changed files with 374 additions and 81 deletions

View File

@@ -197,7 +197,7 @@ module.exports = class Page extends Model {
}
static async getPageFromDb(opts) {
const page = await WIKI.models.pages.query()
return WIKI.models.pages.query()
.column([
'pages.*',
{
@@ -227,7 +227,6 @@ module.exports = class Page extends Model {
}
})
.first()
return page
}
static async savePageToCache(page) {