🐛 Update initialization checks (#3147)

This commit is contained in:
Iván Ovejero
2022-04-19 12:22:05 +02:00
committed by GitHub
parent 0081d02b97
commit f4e9562451
3 changed files with 3 additions and 3 deletions

View File

@@ -423,7 +423,7 @@ export class CredentialsHelper extends ICredentialsHelper {
// eslint-disable-next-line @typescript-eslint/await-thenable
const credentials = await this.getCredentials(nodeCredentials, type);
if (Db.collections.Credentials === null) {
if (!Db.isInitialized) {
// The first time executeWorkflow gets called the Database has
// to get initialized first
await Db.init();