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

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);
}
}