Fixed folder not present.

This commit is contained in:
SamTV12345 2024-03-13 22:48:48 +01:00
parent d5920fa0ef
commit 3c9005d23f

View file

@ -116,6 +116,8 @@ export const checkForMigration = async () => {
await fs.symlink(path.join(pluginInstallPath,file), path.join(node_modules,moduleName), 'dir') await fs.symlink(path.join(pluginInstallPath,file), path.join(node_modules,moduleName), 'dir')
} }
} }
}).catch(()=>{
logger.debug('plugin directory does not exist');
}) })
const fileContent = await fs.readFile(installedPluginsPath); const fileContent = await fs.readFile(installedPluginsPath);
const installedPlugins = JSON.parse(fileContent.toString()); const installedPlugins = JSON.parse(fileContent.toString());