17 lines
389 B
JavaScript
17 lines
389 B
JavaScript
require('../core/worker')
|
|
|
|
/* global WIKI */
|
|
|
|
WIKI.models = require('../core/db').init()
|
|
|
|
module.exports = async (job) => {
|
|
WIKI.logger.info(`Rendering page ${job.data.path}...`)
|
|
|
|
try {
|
|
WIKI.logger.info(`Rendering page ${job.data.path}: [ COMPLETED ]`)
|
|
} catch (err) {
|
|
WIKI.logger.error(`Rendering page ${job.data.path}: [ FAILED ]`)
|
|
WIKI.logger.error(err.message)
|
|
}
|
|
}
|