From 1582cf8bad94890a1957595a0fd51bb128941280 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:55:39 +0200 Subject: fix null returned session (#159) --- internal/gtsmodel/routersession.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/gtsmodel') 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"` } -- cgit v1.3