FIX: Handle NULL transports in credentials using pq.StringArray
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DB struct {
|
type DB struct {
|
||||||
@@ -35,7 +36,7 @@ type Credential struct {
|
|||||||
SignCount int64
|
SignCount int64
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
LastUsedAt *time.Time
|
LastUsedAt *time.Time
|
||||||
Transports []string
|
Transports pq.StringArray
|
||||||
}
|
}
|
||||||
|
|
||||||
type AuthChallenge struct {
|
type AuthChallenge struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user