Skip to content

Commit 3efd585

Browse files
author
Nick
committed
some update
1 parent a24c18e commit 3efd585

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.3|^8.0",
12+
"php": "^7.4|^8.0",
1313
"ext-json": "*",
1414
"illuminate/queue": "^8.0",
15-
"php-amqplib/php-amqplib": "^2.12|^3.0"
15+
"php-amqplib/php-amqplib": "^2.12|^3.0",
16+
"nesbot/carbon": "^2.61.0"
1617
},
1718
"require-dev": {
1819
"phpunit/phpunit": "^9.3",

src/Queue/RabbitMQQueue.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public function pushRaw($payload, $queue = null, array $options = [])
153153
$data = [...$data, [
154154
'task_id' => $correlationId,
155155
'status' => 'PENDING',
156+
'created_at' => Carbon::now(),
157+
'updated_at' => null
156158
]];
157159

158160
Redis::transaction(function ($redis) use ($correlationId, $options, $data) {

0 commit comments

Comments
 (0)