diff --git a/server/store/sqlstore/migrations.go b/server/store/sqlstore/migrations.go index bf661a84e..be629f506 100644 --- a/server/store/sqlstore/migrations.go +++ b/server/store/sqlstore/migrations.go @@ -37,7 +37,7 @@ const ( func (s *SQLStore) runMSTeamUserIDDedup() error { // get all users with duplicate msteamsuserid - rows, err := s.getReplicaQueryBuilder().Select( + rows, err := s.getMasterQueryBuilder().Select( "mmuserid", "msteamsuserid", "remoteid",