feat(db): session structure use sql.NullString instead of string
This commit is contained in:
parent
885afb223b
commit
04d72e45e0
1 changed files with 1 additions and 1 deletions
2
backend/pkg/db/cache/messages_common.go
vendored
2
backend/pkg/db/cache/messages_common.go
vendored
|
|
@ -39,7 +39,7 @@ func (c *PGCache) InsertUserID(sessionID uint64, userID *IOSUserID) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
session.UserID = userID.Value
|
||||
session.UserID = sql.NullString{userID.Value,true}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue