[COMPONENT][Link] Even if everything else in Posting fails, no reason to discard the finding about the Link

This commit is contained in:
Diogo Peralta Cordeiro 2021-12-24 00:37:38 +00:00
parent 671c3968e2
commit 8cd703d68b
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0

View File

@ -163,7 +163,7 @@ class Link extends Entity
'url_hash' => $url_hash,
'mimetype' => $headers['content-type'][0] ?? null,
]);
DB::persist($link);
DB::wrapInTransaction(fn () => DB::persist($link));
Event::handle('LinkStoredNew', [&$link]);
return $link;
}