Skip to content
Snippets Groups Projects
Unverified Commit fea048b3 authored by Joel Speed's avatar Joel Speed
Browse files

Fix SQL updater func

parent d3890983
Branches
Tags
No related merge requests found
...@@ -689,7 +689,7 @@ func (c *conn) UpdateOfflineSessions(userID string, connID string, updater func( ...@@ -689,7 +689,7 @@ func (c *conn) UpdateOfflineSessions(userID string, connID string, updater func(
connector_data = $2 connector_data = $2
where user_id = $3 AND conn_id = $4; 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 { if err != nil {
return fmt.Errorf("update offline session: %v", err) return fmt.Errorf("update offline session: %v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment