feat: history version diff

This commit is contained in:
NGPixel
2020-02-23 23:53:27 -05:00
committed by Nicolas Giard
parent 27ff329d16
commit 95f01cdeb8
5 changed files with 175 additions and 40 deletions

View File

@@ -21,6 +21,15 @@ module.exports = {
offsetSize: args.offsetSize || 100
})
},
/**
* PAGE VERSION
*/
async version(obj, args, context, info) {
return WIKI.models.pageHistory.getVersion({
pageId: args.pageId,
versionId: args.versionId
})
},
/**
* SEARCH PAGES
*/