mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update command
This commit is contained in:
parent
afe18e02ed
commit
41007298a2
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class FixDuplicateProfiles extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
$profiles = Profile::selectRaw('count(user_id) as count,user_id,id')->whereNotNull('user_id')->groupBy('user_id')->orderBy('user_id', 'desc')->get()->where('count', '>', 1);
|
||||
$profiles = Profile::selectRaw('count(user_id) as count,user_id')->whereNotNull('user_id')->groupBy('user_id')->orderBy('user_id', 'desc')->get()->where('count', '>', 1);
|
||||
$count = $profiles->count();
|
||||
if($count == 0) {
|
||||
$this->info("No duplicate profiles found!");
|
||||
|
|
Loading…
Reference in a new issue