| 116 | controller.abort(); | 116 | controller.abort(); |
| 117 | }); | 117 | }); |
| 118 | | 118 | |
| 119 | const isNewModel = (req.body.model.includes('clio') || req.body.model.includes('kayra')); | 119 | const isNewModel = (req.body.model.includes('clio') || req.body.model.includes('kayra') || req.body.model.includes('erato')); |
| 120 | const badWordsList = getBadWordsList(req.body.model); | 120 | const badWordsList = getBadWordsList(req.body.model); |
| 121 | | 121 | |
| 122 | // Add customized bad words for Clio and Kayra | 122 | // Add customized bad words for Clio, Kayra, and Erato |
| 123 | if (isNewModel && Array.isArray(req.body.bad_words_ids)) { | 123 | if (isNewModel && Array.isArray(req.body.bad_words_ids)) { |
| 124 | for (const badWord of req.body.bad_words_ids) { | 124 | for (const badWord of req.body.bad_words_ids) { |
| 125 | if (Array.isArray(badWord) && badWord.every(x => Number.isInteger(x))) { | 125 | if (Array.isArray(badWord) && badWord.every(x => Number.isInteger(x))) { |