Skip to content

Commit

Permalink
Fix Record Client Entity Hydration
Browse files Browse the repository at this point in the history
This will now map in the priority. It should be updated to use the new mapping method in the future to avoid this
  • Loading branch information
phily245 authored Jul 15, 2022
1 parent 72b4fa1 commit 2bef8ba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/SafeDNS/RecordClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ public function destroy(Record $record)
public function loadEntity($data)
{
return new Record([
'id' => $data->id,
'zone' => $data->zone,
'name' => $data->name,
'type' => $data->type,
'content' => $data->content,
'ttl' => $data->ttl,
'id' => $data->id,
'zone' => $data->zone,
'name' => $data->name,
'type' => $data->type,
'content' => $data->content,
'ttl' => $data->ttl,
'priority' => $data->priority,
]);
}
}

0 comments on commit 2bef8ba

Please sign in to comment.