fix gmail scan null results
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
package com.safeqr.app.qrcode.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
@@ -39,6 +40,7 @@ public class QRCodeEntity {
|
||||
@Column(name = "created_at", insertable = false, updatable = false)
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
@Column(name = "result_category")
|
||||
private String result = CLASSIFY_UNKNOWN;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import java.util.UUID;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class URLEntity {
|
||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||
@Column(name="classifications")
|
||||
private String classifications;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user