@colijnit/transaction 12.1.91 → 12.1.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6898,8 +6898,8 @@
6898
6898
  return [4 /*yield*/, this._lockTransaction(id, version)];
6899
6899
  case 1:
6900
6900
  lockResponse = _a.sent();
6901
- if (!lockResponse) return [3 /*break*/, 4];
6902
- if (!!lockResponse.isLockSuccess) return [3 /*break*/, 4];
6901
+ if (!lockResponse) return [3 /*break*/, 6];
6902
+ if (!!lockResponse.isLockSuccess) return [3 /*break*/, 5];
6903
6903
  if (secondAttempt) { // something went wrong
6904
6904
  this.dialogService.showError(this.dictionaryService.get("UNKNOWN_ERROR"));
6905
6905
  return [2 /*return*/, false];
@@ -6915,7 +6915,9 @@
6915
6915
  lockDetails = this.dictionaryService.get("BY") + ": " + lockResponse.lockedBy + "\n " + this.dictionaryService.get("SINCE", false) + " " + lockResponse.lockedSince.toLocaleString();
6916
6916
  this.dialogService.showError(this.dictionaryService.get("TRANSACTION_ALREADY_LOCKED"), lockDetails);
6917
6917
  return [2 /*return*/, false];
6918
- case 4: return [2 /*return*/, false];
6918
+ case 4: return [3 /*break*/, 6];
6919
+ case 5: return [2 /*return*/, true];
6920
+ case 6: return [2 /*return*/, false];
6919
6921
  }
6920
6922
  });
6921
6923
  });