mirror of https://github.com/requarks/wiki
17 lines
395 B
17 lines
395 B
const graphHelper = require('../../helpers/graph')
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
}
|