From fe9d6ec178a55386e63c274843d66eb424d735f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Tue, 2 Jan 2024 13:40:10 +0100 Subject: [PATCH] Do not call hooks during migration of plugins --- src/static/js/pluginfw/installer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/pluginfw/installer.js b/src/static/js/pluginfw/installer.js index cb1cb9ccf..cd37fdf65 100644 --- a/src/static/js/pluginfw/installer.js +++ b/src/static/js/pluginfw/installer.js @@ -48,12 +48,12 @@ const migratePluginsFromNodeModules = async () => { // that are not included in `package.json` (which is expected to not exist). const cmd = ['npm', 'ls', '--long', '--json', '--depth=0', '--no-production']; const {dependencies = {}} = JSON.parse(await runCmd(cmd, {stdio: [null, 'string']})); - await persistInstalledPlugins(); await Promise.all(Object.entries(dependencies).map(async ([pkg, info]) => { if (pkg.startsWith(plugins.prefix) && pkg !== 'ep_etherpad-lite') { - await exports.install(pkg) + await exports.manager.install(pkg) } })); + await persistInstalledPlugins(); } exports.checkForMigration = async () => {