[node] improved sql migrations code
This commit is contained in:
parent
427cc77fa3
commit
1f6daef018
2 changed files with 6 additions and 10 deletions
|
@ -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`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue