You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-20 23:30:05 +02:00
14 lines
260 B
JavaScript
14 lines
260 B
JavaScript
const SearchEngine = require('../services/searchengine/SearchEngine').default;
|
|
|
|
const script = {};
|
|
|
|
script.exec = async function() {
|
|
try {
|
|
await SearchEngine.instance().rebuildIndex();
|
|
} catch {
|
|
// Probably running tests.
|
|
}
|
|
};
|
|
|
|
module.exports = script;
|