Browse Source

use id_str

master
Aaron Parecki 6 years ago
parent
commit
498de90a9f
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/Http/Controllers/TeamController.php

+ 1
- 1
app/Http/Controllers/TeamController.php View File

@ -99,7 +99,7 @@ class TeamController extends Controller
$player = Player::where('twitter_user_id', $profile->id_str)->first();
if(!$player) {
$player = new Player;
$player->twitter_user_id = $profile->id;
$player->twitter_user_id = $profile->id_str;
}
$player->team_id = $request->input('team');
$player->name = $profile->name;

Loading…
Cancel
Save