-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into dev-ks/dbperf
- Loading branch information
Showing
34 changed files
with
1,247 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands\DatabaseCleaner; | ||
|
||
use App\Models\TrustedUser as TrustedUserModel; | ||
use Illuminate\Console\Command; | ||
|
||
class TrustedUser extends Command | ||
{ | ||
protected $signature = 'app:clean-db:trusted-user'; | ||
protected $description = 'Find and delete expired trusted users from database'; | ||
|
||
public function handle(): int { | ||
$affectedRows = TrustedUserModel::where('expires_at', '<', now())->delete(); | ||
$this->info($affectedRows . ' expired trusted users deleted.'); | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace App\Enum\User; | ||
|
||
/** | ||
* @OA\Schema( | ||
* title="FriendCheckinSetting", | ||
* type="string", | ||
* enum={"forbidden", "friends", "list"}, | ||
* example="forbidden", | ||
* ) | ||
*/ | ||
enum FriendCheckinSetting: string | ||
{ | ||
case FORBIDDEN = 'forbidden'; // default | ||
case FRIENDS = 'friends'; // user who are following each other | ||
case LIST = 'list'; // specific list of users | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.