Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-12-12 03:17:38 +00:00
commit 1aa67a5f2c
2 changed files with 0 additions and 6 deletions

View File

@ -89,16 +89,13 @@ module.exports = (cli) => {
watcher
.on('ready', () => {
console.log('Initial scan complete.');
isReady = true;
})
.on('addDir', async (pathname) => {
console.log('addDir....', isReady);
if (!isReady) return;
restartClient();
})
.on('unlinkDir', async (pathname) => {
console.log('unlinkDir....', isReady);
if (!isReady) return;
restartClient();
});

View File

@ -58,16 +58,13 @@ module.exports = (cli) => {
watcher
.on('ready', () => {
console.log('Initial scan complete.');
isReady = true;
})
.on('addDir', async (pathname) => {
console.log('addDir....', isReady);
if (!isReady) return;
restart();
})
.on('unlinkDir', async (pathname) => {
console.log('unlinkDir....', isReady);
if (!isReady) return;
restart();
});