Skip to content

Commit ffcc9eb

Browse files
author
MIYASHITA, Akihiro
committed
Fix loadFromCSV
1 parent c25f2e1 commit ffcc9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ class Connection {
597597
const rs = await Promise.all(
598598
bulks.map(bulk => this._conn.insert(bulk).into(table))
599599
);
600-
return flatten(rs);
600+
return rs.flatMap((r) => this._cassette.rows(r));
601601
}
602602

603603
/**

0 commit comments

Comments
 (0)