No need for data
All checks were successful
repod / nextcloud (push) Successful in 45s
repod / nodejs (push) Successful in 1m24s

This commit is contained in:
Michel Roux 2023-08-29 08:53:15 +02:00
parent 5683d353bb
commit bd40393aeb
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ class PodcastController extends Controller
$podcast = $this->podcastDataReader->tryGetCachedPodcastData($url); $podcast = $this->podcastDataReader->tryGetCachedPodcastData($url);
if ($podcast) { if ($podcast) {
return new JSONResponse(['data' => $podcast]); return new JSONResponse($podcast);
} }
$client = $this->clientService->newClient(); $client = $this->clientService->newClient();
@ -43,6 +43,6 @@ class PodcastController extends Controller
$podcast = PodcastData::parseRssXml((string) $feed->getBody()); $podcast = PodcastData::parseRssXml((string) $feed->getBody());
$this->podcastDataReader->trySetCachedPodcastData($url, $podcast); $this->podcastDataReader->trySetCachedPodcastData($url, $podcast);
return new JSONResponse(['data' => $podcast], $statusCode); return new JSONResponse($podcast, $statusCode);
} }
} }

View File

@ -49,7 +49,7 @@ export default {
async mounted() { async mounted() {
try { try {
const podcastData = await axios.get(generateUrl('/apps/repod/podcast?url={url}', { url: this.url })) const podcastData = await axios.get(generateUrl('/apps/repod/podcast?url={url}', { url: this.url }))
this.feed = podcastData.data.data this.feed = podcastData.data
} catch (e) { } catch (e) {
this.failed = true this.failed = true
console.error(e) console.error(e)