浏览代码

Update FixMissingUserProfile.php

Daniel Supernault 1 月之前
父节点
当前提交
91b15a9dfa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/FixMissingUserProfile.php

+ 1 - 1
app/Console/Commands/FixMissingUserProfile.php

@@ -41,7 +41,7 @@ class FixMissingUserProfile extends Command
         $id = search(
         $id = search(
             label: 'Search for the affected username',
             label: 'Search for the affected username',
             options: fn (string $value) => strlen($value) > 0
             options: fn (string $value) => strlen($value) > 0
-                ? User::doesntHave('profile')->whereNull('status')->whereLike('username', "%{$value}%")->pluck('name', 'id')->all()
+                ? User::doesntHave('profile')->whereNull('status')->whereLike('username', "%{$value}%")->pluck('username', 'id')->all()
                 : []
                 : []
         );
         );