Skip to content

Commit 97f5328

Browse files
authored
Merge pull request #49 from givery-technology/fix-load-from-csv
Fix loadFromCSV
2 parents c25f2e1 + 26af2ea commit 97f5328

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
/**

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "track-db-test-library",
3-
"version": "2.6.0-rc3",
3+
"version": "2.6.0-rc4",
44
"description": "Test utility for Track database challenges",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)