We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d4ebbc commit 23e97ecCopy full SHA for 23e97ec
javascript/rest-api/part-2-database-basics/hr_app/services/database.js
@@ -16,16 +16,14 @@ module.exports.close = close;
16
function simpleExecute(statement, binds = [], opts = {}) {
17
return new Promise(async (resolve, reject) => {
18
let conn;
19
- let result;
20
- let err;
21
22
opts.outFormat = oracledb.OBJECT;
23
opts.autoCommit = true;
24
25
try {
26
conn = await oracledb.getConnection();
27
28
- result = await conn.execute(statement, binds, opts);
+ const result = await conn.execute(statement, binds, opts);
29
30
resolve(result);
31
} catch (err) {
0 commit comments