summaryrefslogtreecommitdiff
path: root/internal/gtsmodel
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-26 18:55:39 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-26 18:55:39 +0200
commit1582cf8bad94890a1957595a0fd51bb128941280 (patch)
treebe4ec777fa7f49dc7f272c4492ea92ace62fea41 /internal/gtsmodel
parentoops (#157) (diff)
downloadgotosocial-1582cf8bad94890a1957595a0fd51bb128941280.tar.xz
fix null returned session (#159)
Diffstat (limited to 'internal/gtsmodel')
-rw-r--r--internal/gtsmodel/routersession.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gtsmodel/routersession.go b/internal/gtsmodel/routersession.go
index 7f3bd85c3..fbc1c7768 100644
--- a/internal/gtsmodel/routersession.go
+++ b/internal/gtsmodel/routersession.go
@@ -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"`
}