Skip to content

Commit

Permalink
Check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
enjinabner committed Oct 10, 2024
1 parent cdce9ec commit 36ee8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Database/MetadataService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function fetchAttributeWithEvent(Attribute $attribute): mixed
$new = $this->fetchAndCache($url);
if ($old !== $new) {
event(new MetadataUpdated(
$attribute->collection->collection_chain_id,
$attribute->collection?->collection_chain_id,
$attribute->token?->token_chain_id,
));
}
Expand Down

0 comments on commit 36ee8ee

Please sign in to comment.