From 2ac732dc527d53974d65a5afbb33c452a567797b Mon Sep 17 00:00:00 2001 From: Emmanuel Gaillot Date: Sat, 20 Dec 2025 22:27:27 +0100 Subject: Post solution --- lambda-calcul/javascript/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lambda-calcul/javascript/index.js') 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({ -- cgit v1.3.1