mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Capture error on real-time update when creating short URL
This commit is contained in:
@@ -26,9 +26,9 @@ abstract class AbstractCreateShortUrlAction extends AbstractRestAction
|
||||
public function handle(Request $request): Response
|
||||
{
|
||||
$shortUrlMeta = $this->buildShortUrlData($request);
|
||||
$shortUrl = $this->urlShortener->shorten($shortUrlMeta);
|
||||
$result = $this->urlShortener->shorten($shortUrlMeta);
|
||||
|
||||
return new JsonResponse($this->transformer->transform($shortUrl));
|
||||
return new JsonResponse($this->transformer->transform($result->shortUrl));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user