Skip to content

Commit

Permalink
🐛 Handle blobs parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Jun 25, 2022
1 parent c01baa8 commit 68e0093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ class Client_Firebird extends Client {
Object.entries(row).forEach(([colKey, colVal]) => {
if (colVal instanceof Function) {
blobEntries.push(
new Promise((resolve) => {
new Promise((resolve, reject) => {
colVal((err, name, emitter) => {
getStream.buffer(emitter).then((buffer) => {
rows[rowIndex][colKey] = buffer;
resolve();
});
}).catch(reject);
});
})
);
Expand Down

0 comments on commit 68e0093

Please sign in to comment.