From b22e2b318f0d8f97f22ec405838efdeaf89076e2 Mon Sep 17 00:00:00 2001 From: Thomas Taylor Date: Tue, 21 Nov 2023 13:07:07 +0000 Subject: [PATCH] Fix clean install --- lib/ContentPluginModule.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ContentPluginModule.js b/lib/ContentPluginModule.js index c0a1214..e7d2a1a 100644 --- a/lib/ContentPluginModule.js +++ b/lib/ContentPluginModule.js @@ -140,7 +140,8 @@ class ContentPluginModule extends AbstractApiModule { const installedPlugins = await this.framework.getInstalledPlugins() if (!dbPlugins.length) { // no plugins in the DB, start afresh - return this.installPlugins(installedPlugins.map(p => `${p.name}@${p.requestedVersion}`)) + const manifestPlugins = await this.framework.getManifestPlugins() + return this.installPlugins(manifestPlugins) } const missingPlugins = dbPlugins .filter(dbP => !installedPlugins.find(fwP => dbP.name === fwP.name))