Skip to content

Commit 60eb6ad

Browse files
Merge pull request #379 from larshp/patch-1
Documentation: fix, variable res is not in scope but result is
2 parents b2010f9 + 8339b10 commit 60eb6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/Promise-Wrapper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In addition to errback interface there is thin wrapper to expose Promise-based a
1919
conn.release();
2020
return res;
2121
}).then( (result) => {
22-
console.log(res[0][0].foo);
22+
console.log(result[0][0].foo);
2323
}).catch( (err) => {
2424
console.log(err); // any of connection time or query time errors from above
2525
});

0 commit comments

Comments
 (0)