diff --git a/packages/core/server/src/commands/install.ts b/packages/core/server/src/commands/install.ts index 07e71df5a..c1cb0a377 100644 --- a/packages/core/server/src/commands/install.ts +++ b/packages/core/server/src/commands/install.ts @@ -20,7 +20,7 @@ export default (app: Application) => { } if (!opts?.clean && !opts?.force) { - if (app.db.collectionExistsInDb('applicationVersion')) { + if (await app.db.collectionExistsInDb('applicationVersion')) { installed = true; if (!opts.silent) { console.log('NocoBase is already installed. To reinstall, please execute:');