Also fix orderByRaw in SeedFollows

This commit is contained in:
Neil Alexander 2018-06-01 12:23:52 +01:00
parent 11447c13da
commit efbb1017e7
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 3 additions and 3 deletions

View File

@ -41,10 +41,10 @@ class SeedFollows extends Command
{
$limit = 10000;
for ($i=0; $i < $limit; $i++) {
for ($i=0; $i < $limit; $i++) {
try {
$actor = Profile::orderByRaw('rand()')->firstOrFail();
$target = Profile::orderByRaw('rand()')->firstOrFail();
$actor = Profile::inRandomOrder()->firstOrFail();
$target = Profile::inRandomOrder()->firstOrFail();
$follow = new Follower;
$follow->profile_id = $actor->id;