diff options
Diffstat (limited to 'lambda-calcul/javascript/index.js')
| -rw-r--r-- | lambda-calcul/javascript/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lambda-calcul/javascript/index.js b/lambda-calcul/javascript/index.js index c01c39e..d8b5e68 100644 --- a/lambda-calcul/javascript/index.js +++ b/lambda-calcul/javascript/index.js @@ -15,7 +15,8 @@ const solveNextChallenge = (token) => client .nextChallenge(token) .then(challenge => console.log(`Next challenge: ${challenge}`) || challenge) .then(client.solve) - .then(solution => console.log(`… solved into: ${solution}`)); + .then(solution => console.log(`Posting solution: ${solution}`) || solution) + .then(solution => client.postSolution(token, solution)); const waitForEnterToBePressed = () => { const readlineInterface = createInterface({ |
