close mongo connection on close (#1597)

Fix #1595
This commit is contained in:
Allan Daemon 2021-04-14 09:02:51 -03:00 committed by GitHub
parent 41088fcd9e
commit 10ba842610
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,6 +160,7 @@ export class MongoDb implements INodeType {
throw new Error(`The operation "${operation}" is not supported!`);
}
client.close();
return this.prepareOutputData(returnItems);
}
}