Skip to content

Commit daaaf21

Browse files
author
Sachin Maheshwari
committed
fixing json error
1 parent 72c98a0 commit daaaf21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/updateToV5ChallengeIdSmallChunk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function* updateRecords() {
6767
const tableName = config.SUBMISSION_TABLE_NAME
6868
const promises = []
6969
const failedRecords = []
70-
const legacyChallengeIds = config.MIGRATE_CHALLENGES
70+
const legacyChallengeIds = JSON.parse(config.MIGRATE_CHALLENGES)
7171
const queryParams = _.fromPairs(_.map(legacyChallengeIds, (c, i) => [`:challengeId${i}`, c]))
7272
const params = {
7373
TableName: tableName,
@@ -109,4 +109,4 @@ co(function* () {
109109
yield updateRecords()
110110
}).catch((err) => {
111111
logger.logFullError(err)
112-
})
112+
})

0 commit comments

Comments
 (0)