Skip to content

Commit

Permalink
chore: use sqlxx.NullString
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Dec 27, 2023
1 parent 319eeed commit 2670af7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion courier/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/ory/herodot"
"github.com/ory/kratos/courier/template"
"github.com/ory/x/pagination/keysetpagination"
"github.com/ory/x/sqlxx"
"github.com/ory/x/stringsx"
)

Expand Down Expand Up @@ -189,7 +190,7 @@ type Message struct {
// required: true
TemplateType template.TemplateType `json:"template_type" db:"template_type"`

Channel string `json:"channel" db:"channel"`
Channel sqlxx.NullString `json:"channel" db:"channel"`

TemplateData []byte `json:"-" db:"template_data"`
// required: true
Expand Down

0 comments on commit 2670af7

Please sign in to comment.