Ensure db session is closed
This commit is contained in:
Родитель
df303076a1
Коммит
a2fa2011ce
|
@ -17,7 +17,8 @@ module.exports = async function (context, eventHubMessages) {
|
|||
context.log(query);
|
||||
client.connect();
|
||||
client.query(query);
|
||||
context.log('insert completed successfully!');
|
||||
await client.end();
|
||||
context.log('insert completed successfully!');
|
||||
/*
|
||||
client.connect(err => {
|
||||
if (err) throw err;
|
||||
|
|
Загрузка…
Ссылка в новой задаче