Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2bf338f

Browse files
Fix issue where running script in dev instance threw error
1 parent 57e3ef5 commit 2bf338f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/db/importS3ToQldb.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ async function main () {
4747
const data = await s3.getObject({ Bucket: bucket, Key: key }).promise()
4848
const contents = ion.loadAll(data.Body)
4949
for (const content of contents) {
50+
if (!content.transactionInfo) {
51+
continue
52+
}
5053
// get content of each transaction
5154
const statement = content.transactionInfo.statements.get(0).statement.stringValue()
5255
// process create statement

0 commit comments

Comments
 (0)