Skip to content

Commit

Permalink
fix: duplicate removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Czeladka committed Aug 12, 2024
1 parent 3774aaf commit 9713848
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import javax.annotation.Nullable;
import java.util.Optional;

import static jakarta.persistence.EnumType.STRING;

@NoArgsConstructor
@AllArgsConstructor
@Entity
Expand Down Expand Up @@ -51,15 +53,15 @@ public class Vote extends AbstractTimestampEntity {
@Column(name = "wallet_type", nullable = false)
@Getter
@Setter
@Enumerated(EnumType.STRING)
@Enumerated(STRING)
private WalletType walletType;

@Column(name = "signature", nullable = false, columnDefinition = "text", length = 2048)
@Getter
@Setter
private String signature;

@Column(name = "signature", columnDefinition = "text", length = 2048)
@Column(name = "payload", columnDefinition = "text", length = 2048)
@Nullable // in case of Cardano Wallet, payload is inside of signature
private String payload;

Expand Down

0 comments on commit 9713848

Please sign in to comment.