Skip to content

Commit 23e97ec

Browse files
author
Dan McGhan
committed
Fixed variables in simpleExecute
1 parent 3d4ebbc commit 23e97ec

File tree

1 file changed

+1
-3
lines changed
  • javascript/rest-api/part-2-database-basics/hr_app/services

1 file changed

+1
-3
lines changed

javascript/rest-api/part-2-database-basics/hr_app/services/database.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ module.exports.close = close;
1616
function simpleExecute(statement, binds = [], opts = {}) {
1717
return new Promise(async (resolve, reject) => {
1818
let conn;
19-
let result;
20-
let err;
2119

2220
opts.outFormat = oracledb.OBJECT;
2321
opts.autoCommit = true;
2422

2523
try {
2624
conn = await oracledb.getConnection();
2725

28-
result = await conn.execute(statement, binds, opts);
26+
const result = await conn.execute(statement, binds, opts);
2927

3028
resolve(result);
3129
} catch (err) {

0 commit comments

Comments
 (0)