fix: rename podcast name to podcast handle to clarify field usage

- podcast name was too vague and didn't come clearly for users: handle is more relevant
- update
package.json dependencies and remove unnused packages

closes #126
This commit is contained in:
Yassine Doghri 2021-07-26 13:10:46 +00:00
commit 9dd4c7741e
75 changed files with 14944 additions and 13691 deletions

View file

@ -20,11 +20,11 @@ use Opawg\UserAgentsPhp\UserAgentsRSS;
class FeedController extends Controller
{
public function index(string $podcastName): ResponseInterface
public function index(string $podcastHandle): ResponseInterface
{
helper('rss');
$podcast = (new PodcastModel())->where('name', $podcastName)
$podcast = (new PodcastModel())->where('handle', $podcastHandle)
->first();
if (! $podcast) {
throw PageNotFoundException::forPageNotFound();