Skip to content

Commit 0992675

Browse files
Fix lint errors
1 parent b14e368 commit 0992675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/updateToV5ChallengeIdSmallChunk.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const esClient = helper.getEsClient()
1717
* @param {Array} failedContainer The failed records container
1818
* @returns {Promise}
1919
*/
20-
function* updateRecord(submission, failedContainer) {
20+
function * updateRecord (submission, failedContainer) {
2121
let v5challengeId
2222
try {
2323
v5challengeId = yield helper.getV5ChallengeId(submission.challengeId)
@@ -63,7 +63,7 @@ function* updateRecord(submission, failedContainer) {
6363
* Update all submission's challenge id to v5
6464
* @returns {Promise}
6565
*/
66-
function* updateRecords() {
66+
function * updateRecords () {
6767
const tableName = config.SUBMISSION_TABLE_NAME
6868
const promises = []
6969
const failedRecords = []
@@ -105,7 +105,7 @@ function* updateRecords() {
105105
}
106106
}
107107

108-
co(function* () {
108+
co(function * () {
109109
yield updateRecords()
110110
}).catch((err) => {
111111
logger.logFullError(err)

0 commit comments

Comments
 (0)