fix null returned session (#159)

This commit is contained in:
tobi 2021-08-26 18:55:39 +02:00 committed by GitHub
commit 1582cf8bad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"`
}