diff options
author | Julien Dessaux | 2023-05-29 23:25:09 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-05-29 23:25:09 +0200 |
commit | d79a4485a6b1a3ae6b647d94b45ee22a515441f2 (patch) | |
tree | eccef4acf2a206fa0cfd74c783672287ae99a50b /automation | |
parent | Refactored the code to separate automation code from the lib handling the api (diff) | |
download | spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.tar.gz spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.tar.bz2 spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.zip |
Many new api calls
Diffstat (limited to '')
-rw-r--r-- | automation/contract.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/automation/contract.js b/automation/contract.js index bf428e9..aebb265 100644 --- a/automation/contract.js +++ b/automation/contract.js @@ -13,7 +13,7 @@ export async function auto(ctx) { let contract = cs[0]; if (!contract.accepted) { console.log(new Date(), `accepting contract ${contract.id}`); - await contracts.accept({id: contract.id}); + await contracts.accept({contract: contract.id}); } const good = contract.terms.deliver[0].tradeSymbol; const deliveryPoint = contract.terms.deliver[0].destinationSymbol; |