Skip to content

Commit 4292822

Browse files
authored
Merge pull request #8060 from bakaphp/hotfix/affiliate-link
refact: fix
2 parents 5d98b62 + 47898d8 commit 4292822

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Domains/Connectors/Elead/Workflow/PushLeadNotesActivity.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ public function execute(Message $message, Apps $app, array $params): array
4141
];
4242
}
4343

44+
sleep(5); // To avoid locked message being processed
45+
4446
return $this->executeIntegration(
4547
entity: $message,
4648
app: $app,
4749
integration: IntegrationsEnum::ELEAD,
4850
integrationOperation: function (Message $message, Apps $app, mixed $integrationCompany, array $additionalParams) {
51+
$message->refresh();
4952
$lead = $message->entity();
5053

5154
if (! $lead instanceof Lead) {

0 commit comments

Comments
 (0)