minor updates
This commit is contained in:
@@ -3,7 +3,6 @@ package zw.qantra.tm.domain.models;
|
||||
import jakarta.persistence.Entity;
|
||||
import lombok.*;
|
||||
import org.hibernate.annotations.SQLRestriction;
|
||||
import org.hibernate.annotations.Where;
|
||||
|
||||
|
||||
@Entity
|
||||
|
||||
@@ -39,6 +39,9 @@ public class IntegrationHandler implements HandlerInterface {
|
||||
if(transaction.getIntegrationStatus().equals(Status.SUCCESS))
|
||||
return transaction;
|
||||
|
||||
if(!transaction.getPollingStatus().equals(Status.SUCCESS))
|
||||
throw new ApiException("Transaction failed: Polling is not yet complete" );
|
||||
|
||||
// prevent race condition
|
||||
if (isLocked(transaction.getId().toString())) {
|
||||
logger.info("Transaction already processing - {}", transaction.getId());
|
||||
|
||||
Reference in New Issue
Block a user