Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions domain/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func (j JSONB) Value() (driver.Value, error) {

// Scan implements the sql.Scanner interface
func (j *JSONB) Scan(value any) error {
if value == nil {
*j = nil
return nil
}
return json.Unmarshal([]byte(value.(string)), j)
}

Expand Down