dont overwrite endpoint on new login, update endpoint on /me request

This commit is contained in:
2024-09-22 15:11:26 +02:00
parent dcfe1dc191
commit 57cdb3dbc9
3 changed files with 2 additions and 2 deletions

View File

@@ -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,