Skip to content

Commit 5ab89d5

Browse files
fix: update how we iterate meta in hydrateRow (#85)
1 parent d88074d commit 5ab89d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/statement/hydrateResponse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ export const hydrateRow = (
6363
const isArray = Array.isArray(row);
6464
const hydratedRow = isArray ? [] : {};
6565

66-
for (const index in meta) {
67-
const column = meta[index];
66+
for (const [index, column] of meta.entries()) {
6867
if (isArray) {
6968
const key = +index;
7069
(hydratedRow as unknown[])[key] = getHydratedValue(

0 commit comments

Comments
 (0)