Skip to content

Commit

Permalink
Merge branch 'develop' into 5893-5897
Browse files Browse the repository at this point in the history
  • Loading branch information
JalalLinuX committed Oct 30, 2023
2 parents d058649 + 27d6840 commit d3fe3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entities/Edge.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function deleteEdge(string $id = null): bool
public function saveEdge(string $name = null, string $type = null, string $secret = null, string $routingKey = null): static
{
$payload = array_merge($this->attributesToArray(), [
'name' => $name,
'name' => $name ?? $this->forceAttribute('name'),
'type' => $type ?? $this->getAttribute('type') ?? 'default',
'secret' => $secret ?? $this->getAttribute('secret') ?? uniqid(),
'routingKey' => $routingKey ?? $this->getAttribute('routingKey') ?? Str::uuid()->toString(),
Expand Down

0 comments on commit d3fe3dc

Please sign in to comment.