fix: await page render to finish before resolving
This commit is contained in:
@@ -197,13 +197,14 @@ module.exports = class Page extends Model {
|
||||
|
||||
static async renderPage(page) {
|
||||
const pipeline = await WIKI.models.renderers.getRenderingPipeline(page.contentType)
|
||||
WIKI.queue.job.renderPage.add({
|
||||
const renderJob = await WIKI.queue.job.renderPage.add({
|
||||
page,
|
||||
pipeline
|
||||
}, {
|
||||
removeOnComplete: true,
|
||||
removeOnFail: true
|
||||
})
|
||||
return renderJob.finished()
|
||||
}
|
||||
|
||||
static async getPage(opts) {
|
||||
|
@@ -5,7 +5,6 @@ author: requarks.io
|
||||
logo: https://static.requarks.io/logo/local-fs.svg
|
||||
website: https://wiki.js.org
|
||||
supportedModes:
|
||||
- sync
|
||||
- push
|
||||
props:
|
||||
path:
|
||||
|
@@ -4,6 +4,10 @@ description: Git is a version control system for tracking changes in computer fi
|
||||
author: requarks.io
|
||||
logo: https://static.requarks.io/logo/git-alt.svg
|
||||
website: https://git-scm.com/
|
||||
supportedModes:
|
||||
- sync
|
||||
- push
|
||||
- pull
|
||||
props:
|
||||
authType:
|
||||
type: String
|
||||
|
Reference in New Issue
Block a user