Skip to content

Commit

Permalink
fix edge name attr
Browse files Browse the repository at this point in the history
  • Loading branch information
JalalLinuX committed Oct 30, 2023
1 parent 1f8820a commit 27d6840
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 27d6840

Please sign in to comment.