Skip to content

Commit a455283

Browse files
Merge pull request #47061 from nextcloud/fix/avoid-collision-of-webhook-calls
fix(webhook_listeners): Avoid collision between two identical calls at the same second
2 parents 3c4ee71 + 6b149be commit a455283

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/webhook_listeners/lib/Listener/WebhooksEventListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function handle(Event $event): void {
5050
[
5151
$data,
5252
$webhookListener->getId(),
53+
/* Random string to avoid collision with another job with the same parameters */
54+
bin2hex(random_bytes(5)),
5355
]
5456
);
5557
}

0 commit comments

Comments
 (0)