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

Commit 32534a9

Browse files
committed
making the sleep configurable.
logging out just the axios message on error
1 parent 72faf80 commit 32534a9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

config/custom-environment-variables.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"AUTH0_CLIENT_ID": "AUTH0_CLIENT_ID",
88
"AUTH0_CLIENT_SECRET": "AUTH0_CLIENT_SECRET",
99
"AUTH0_AUDIENCE": "AUTH0_AUDIENCE",
10-
"TOKEN_CACHE_TIME": "TOKEN_CACHE_TIME"
10+
"TOKEN_CACHE_TIME": "TOKEN_CACHE_TIME",
11+
"SLEEP_LENGTH": "SLEEP_LENGTH"
1112
}

config/default.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"AUTH0_CLIENT_ID": "",
88
"AUTH0_CLIENT_SECRET": "",
99
"AUTH0_AUDIENCE": "https://u-bahn.topcoder.com",
10-
"TOKEN_CACHE_TIME": 86400000
10+
"TOKEN_CACHE_TIME": 86400000,
11+
"SLEEP_LENGTH": 3000
1112
}

create-skills.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ async function createSkill() {
4343
})
4444
} catch (error) {
4545
console.log(`Error for skill: '${name}'`)
46-
// console.log(error)
46+
console.log(error.message)
4747
fails[fails.length] = { postion: i, name}
4848
}
49-
await sleep(3000)
49+
await sleep(config.SLEEP_LENGTH)
5050
}
5151
} catch (e) {
5252
console.log(e)

0 commit comments

Comments
 (0)