summaryrefslogtreecommitdiff
path: root/automation
diff options
context:
space:
mode:
authorJulien Dessaux2023-05-29 23:25:09 +0200
committerJulien Dessaux2023-05-29 23:25:09 +0200
commitd79a4485a6b1a3ae6b647d94b45ee22a515441f2 (patch)
treeeccef4acf2a206fa0cfd74c783672287ae99a50b /automation
parentRefactored the code to separate automation code from the lib handling the api (diff)
downloadspacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.tar.gz
spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.tar.bz2
spacetraders-d79a4485a6b1a3ae6b647d94b45ee22a515441f2.zip
Many new api calls
Diffstat (limited to 'automation')
-rw-r--r--automation/contract.js2
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;