fix(cli): missing await

This commit is contained in:
chenos 2022-06-19 10:30:01 +08:00
parent 99fdc83dae
commit 8eec4ac4d1

View File

@ -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:');