Skip to content

Commit

Permalink
delete the constraint for id
Browse files Browse the repository at this point in the history
  • Loading branch information
liberhe committed Jan 22, 2024
1 parent 6e2aa96 commit 76dc18d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/dl/officialsite/redpacket/RedPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
@EntityListeners(AuditingEntityListener.class)
@Entity
@DynamicUpdate
@Table(name = "red_packet", schema = "dl", uniqueConstraints = {
@UniqueConstraint(name = "id", columnNames = {"id"} )
})
@Table(name = "red_packet", schema = "dl")

public class RedPacket {
@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void updateRedpacketStatus() throws IOException {
JsonArray lastupdatesArray = data.getAsJsonArray("lastupdates");
String lastTimestampFromGraph = lastupdatesArray.get(0).getAsJsonObject().get("lastupdateTimestamp").getAsString();

// open in prod
// open in prod todo
// if(Objects.equals(lastTimestampFromGraph, lastUpdateTimestamp)){
// return;
// } else {
Expand Down

0 comments on commit 76dc18d

Please sign in to comment.