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.
14 lines
378 B
14 lines
378 B
export async function task (payload) {
|
|
WIKI.logger.info('Refreshing autocomplete word index...')
|
|
|
|
try {
|
|
await WIKI.db.pages.refreshAutocompleteIndex()
|
|
|
|
WIKI.logger.info('Refreshed autocomplete word index: [ COMPLETED ]')
|
|
} catch (err) {
|
|
WIKI.logger.error('Refreshing autocomplete word index: [ FAILED ]')
|
|
WIKI.logger.error(err.message)
|
|
throw err
|
|
}
|
|
}
|