Skip to content

Commit

Permalink
Account for Apple and FBIG IDs in devconsole device ID relink operati…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
zyro committed Nov 28, 2020
1 parent 762bee9 commit 768af72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/console_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ func (s *ConsoleServer) UpdateAccount(ctx context.Context, in *console.UpdateAcc
if newDeviceID == "" {
query := `DELETE FROM user_device WHERE id = $2 AND user_id = $1
AND (EXISTS (SELECT id FROM users WHERE id = $1 AND
(facebook_id IS NOT NULL
(apple_id IS NOT NULL
OR facebook_id IS NOT NULL
OR facebook_instant_game_id IS NOT NULL
OR google_id IS NOT NULL
OR gamecenter_id IS NOT NULL
OR steam_id IS NOT NULL
Expand Down

0 comments on commit 768af72

Please sign in to comment.