fix(firstleg): include receipt version in confirmation idempotency
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ public class ContainerCustomsService {
|
||||
public ContainerView confirmReceipt(long tenantId, long documentId, long operatorId, String operatorName,
|
||||
String key, int expectedVersion, boolean confirm, String reason) {
|
||||
String action = (confirm ? "CONFIRM_CUSTOMS_RECEIPT_" : "REJECT_CUSTOMS_RECEIPT_") + documentId;
|
||||
String requestHash = hash(action, confirm, reason);
|
||||
String requestHash = hash(action, expectedVersion, confirm, reason);
|
||||
CommandRow replay = claim(operatorId, action, key, requestHash);
|
||||
if (replay != null) {
|
||||
DocumentRow source = requiredDocument(documentId);
|
||||
|
||||
Reference in New Issue
Block a user