Merge branch 'dillon/34.1-jenkins-vapor' into vapor/development

This commit is contained in:
Dillon Ngo
2024-03-24 19:24:20 +08:00
2 changed files with 3 additions and 1 deletions
@@ -22,6 +22,8 @@ class NewUserRegistrationExpireCheckV2CommandJob implements ShouldQueue
$start = new Carbon();
$attempts = UserEmailVerification::active()->twoDaysOld()->get();
Log::info('Carbon now()->subHours(48): '. Carbon::now()->subHours(48));
Log::info('Attempts count: '.count($attempts));
foreach ($attempts as $attempt){
+1 -1
View File
@@ -33,6 +33,6 @@ class UserEmailVerification extends AbstractModel
*/
public function scopeTwoDaysOld($query)
{
return $query->where('created_at', '>=', Carbon::now()->subHours(48));
return $query->where('created_at', '<=', Carbon::now()->subHours(48));
}
}