Fix postpone error

This commit is contained in:
2020-04-25 22:54:36 +03:00
parent 0ab919b4e1
commit e9e3459f83
2 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,10 @@ export class SendResourcesAction extends ActionController {
console.log('To transfer res', readyToTransfer);
console.log('Remaining res', remainingResources);
if (!remainingResources.empty() && readyToTransfer.amount() < 100) {
throw new TryLaterError(aroundMinutes(10), 'Not minimal amount');
}
if (!remainingResources.empty()) {
console.log('Schedule next', remainingResources);
this.scheduler.scheduleTask(