Skip to content

Commit

Permalink
fix Cleanup delay param
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jan 20, 2025
1 parent efebecf commit 03c65b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/Cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle()
$idStr = $this->option('id_str') ?: "";
$idRedisKey = $this->option('id_redis_key') ?: "";
$commentRequestId = $this->option('request_id');
$delay = $this->option('delay') ?: 0;
$delay = intval($this->option('delay') ?: 0);
$this->info("beginId: $beginId, endId: $endId, idStr: $idStr, idRedisKey: $idRedisKey, commentRequestId: $commentRequestId, delay: $delay, action: $action");
if ($action == 'seed_bonus') {
CalculateUserSeedBonus::dispatch($beginId, $endId, $idStr, $idRedisKey, $commentRequestId)->delay($delay);
Expand Down

0 comments on commit 03c65b6

Please sign in to comment.