Fix SQL updater func

This commit is contained in:
Joel Speed 2018-02-15 11:00:06 +00:00
parent d38909831c
commit fea048b3e8
No known key found for this signature in database
GPG key ID: 6E80578D6751DEFB

View file

@ -689,7 +689,7 @@ func (c *conn) UpdateOfflineSessions(userID string, connID string, updater func(
connector_data = $2
where user_id = $3 AND conn_id = $4;
`,
encoder(newSession.Refresh), s.ConnectorData, s.UserID, s.ConnID,
encoder(newSession.Refresh), newSession.ConnectorData, s.UserID, s.ConnID,
)
if err != nil {
return fmt.Errorf("update offline session: %v", err)