fix null returned session

This commit is contained in:
tsmethurst 2021-08-26 18:42:11 +02:00
commit 8068a5e73e
5 changed files with 103 additions and 22 deletions

View file

@ -21,6 +21,6 @@ package gtsmodel
// RouterSession is used to store and retrieve settings for a router session.
type RouterSession struct {
ID string `bun:"type:CHAR(26),pk,notnull"`
Auth []byte `bun:"type:bytea,notnull"`
Crypt []byte `bun:"type:bytea,notnull"`
Auth []byte `bun:"type:bytea,notnull,nullzero"`
Crypt []byte `bun:"type:bytea,notnull,nullzero"`
}