2018-07-22 20:25:39 +00:00
|
|
|
/* global WIKI */
|
|
|
|
|
2019-02-17 06:32:35 +00:00
|
|
|
module.exports = async ({ target }) => {
|
2018-07-22 20:25:39 +00:00
|
|
|
WIKI.logger.info(`Syncing with storage provider ${job.data.target.title}...`)
|
|
|
|
|
2019-02-17 06:32:35 +00:00
|
|
|
// try {
|
|
|
|
// const target = require(`../modules/storage/${job.data.target.key}/storage.js`)
|
|
|
|
// target[job.data.event].call({
|
|
|
|
// config: job.data.target.config,
|
|
|
|
// mode: job.data.target.mode,
|
|
|
|
// page: job.data.page
|
|
|
|
// })
|
|
|
|
// WIKI.logger.info(`Syncing with storage provider ${job.data.target.title}: [ COMPLETED ]`)
|
|
|
|
// } catch (err) {
|
|
|
|
// WIKI.logger.error(`Syncing with storage provider ${job.data.target.title}: [ FAILED ]`)
|
|
|
|
// WIKI.logger.error(err.message)
|
|
|
|
// }
|
2018-07-22 20:25:39 +00:00
|
|
|
}
|