Adding again the .includes in the allDirectory

pull/24/head
capitanwesler 5 years ago
parent 56d063bf9b
commit 01d23d5076

@ -76,7 +76,7 @@ const getAllAnimes = async () =>{
const getAllDirectory = async (genres) => { const getAllDirectory = async (genres) => {
if (genres === 'sfw') { if (genres === 'sfw') {
return directoryAnimes.filter(function (doc) { return directoryAnimes.filter(function (doc) {
if (doc.genres.indexOf('Ecchi') === -1 && doc.genres.indexOf('ecchi') === -1) { if (!doc.genres.includes('Ecchi') && !doc.genres.includes('ecchi')) {
return { return {
id: doc.id, id: doc.id,
title: doc.title, title: doc.title,

Loading…
Cancel
Save