Fix SQL updater func
This commit is contained in:
parent
d38909831c
commit
fea048b3e8
@ -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)
|
||||||
|
Reference in New Issue
Block a user