Fix errors
This commit is contained in:
@ -11,6 +11,7 @@ export class CheckBuildingRemainingTimeAction extends ActionController {
|
||||
const remainingSeconds = Number(timer.attr('value'));
|
||||
if (remainingSeconds > 0) {
|
||||
throw new BuildingQueueFullError(
|
||||
task.id,
|
||||
remainingSeconds + 1,
|
||||
'Building queue is full'
|
||||
);
|
||||
|
@ -11,7 +11,11 @@ export class UpgradeBuildingAction extends ActionController {
|
||||
);
|
||||
|
||||
if (btn.length !== 1) {
|
||||
throw new TryLaterError(5 * 60, 'No upgrade button, try later');
|
||||
throw new TryLaterError(
|
||||
task.id,
|
||||
15 * 60,
|
||||
'No upgrade button, try later'
|
||||
);
|
||||
}
|
||||
|
||||
btn.trigger('click');
|
||||
|
Reference in New Issue
Block a user