mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
dont overwrite endpoint on new login, update endpoint on /me request
This commit is contained in:
@@ -100,7 +100,6 @@ func SaveUser(user User) error {
|
||||
query := `INSERT INTO users (id, name, endpoint, avatar_url, access_token, refresh_token, expire_date) VALUES (?, ?, ?, ?, ?, ?, ?)
|
||||
ON CONFLICT(id) DO UPDATE SET
|
||||
name = excluded.name,
|
||||
endpoint = excluded.endpoint,
|
||||
avatar_url = excluded.avatar_url,
|
||||
access_token = excluded.access_token,
|
||||
refresh_token = excluded.refresh_token,
|
||||
|
||||
Reference in New Issue
Block a user