feat(db): session structure use sql.NullString instead of string

This commit is contained in:
Taha Yassine Kraiem 2022-01-28 20:45:20 +01:00
parent 885afb223b
commit 04d72e45e0

View file

@ -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
}