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