summaryrefslogtreecommitdiff
path: root/nodejs/automation
diff options
context:
space:
mode:
authorJulien Dessaux2024-05-07 00:34:26 +0200
committerJulien Dessaux2024-05-07 00:34:26 +0200
commit1f6daef0180bc737a2883203f6d513e5b81712ed (patch)
tree6ec44d46114a7e3e7c0239395d623454ca2d43a4 /nodejs/automation
parent[golang] bootstrapped a client in yet another language (diff)
downloadspacetraders-1f6daef0180bc737a2883203f6d513e5b81712ed.tar.gz
spacetraders-1f6daef0180bc737a2883203f6d513e5b81712ed.tar.bz2
spacetraders-1f6daef0180bc737a2883203f6d513e5b81712ed.zip
[node] improved sql migrations code
Diffstat (limited to 'nodejs/automation')
-rw-r--r--nodejs/automation/contracting.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/nodejs/automation/contracting.ts b/nodejs/automation/contracting.ts
index 93c2f8e..9ac5d2f 100644
--- a/nodejs/automation/contracting.ts
+++ b/nodejs/automation/contracting.ts
@@ -32,11 +32,11 @@ async function runOne(contract: Contract, ship: Ship): Promise<void> {
await libContracts.accept(contract);
switch(contract.type) {
case 'PROCUREMENT':
- if (contract.terms.deliver[0].tradeSymbol.match(/_ORE$/)) {
- await runOreProcurement(contract, ship);
- } else {
+ //if (contract.terms.deliver[0].tradeSymbol.match(/_ORE$/)) {
+ // await runOreProcurement(contract, ship);
+ //} else {
await runTradeProcurement(contract, ship);
- }
+ //}
break;
default:
throw `Handling of contract type ${contract.type} is not implemented yet`;