Fix SQL storage

This commit is contained in:
Joel Speed
2018-01-30 11:19:08 +00:00
parent b9b315dd64
commit 80995dff9b
2 changed files with 13 additions and 15 deletions

View File

@@ -330,7 +330,7 @@ func getRefresh(q querier, id string) (storage.RefreshToken, error) {
claims_user_id, claims_username, claims_preferred_username,
claims_email, claims_email_verified,
claims_groups,
connector_id, connector_data,
connector_id,
token, created_at, last_used
from refresh_token where id = $1;
`, id))
@@ -685,7 +685,7 @@ func (c *conn) UpdateOfflineSessions(userID string, connID string, updater func(
_, err = tx.Exec(`
update offline_session
set
refresh = $1
refresh = $1,
connector_data = $2
where user_id = $3 AND conn_id = $4;
`,