mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
414 B
19 lines
414 B
const graphHelper = require('../../helpers/graph')
|
|
|
|
/* global WIKI */
|
|
|
|
module.exports = {
|
|
Mutation: {
|
|
async rebuildSearchIndex (obj, args, context) {
|
|
try {
|
|
await WIKI.data.searchEngine.rebuild()
|
|
return {
|
|
responseResult: graphHelper.generateSuccess('Index rebuilt successfully')
|
|
}
|
|
} catch (err) {
|
|
return graphHelper.generateError(err)
|
|
}
|
|
}
|
|
}
|
|
}
|