Replace ValidationError by ApplicationError in services & lifecycles
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* to customize this model
|
||||
*/
|
||||
|
||||
const { ValidationError } = require("@strapi/utils").errors
|
||||
const { ApplicationError } = require("@strapi/utils").errors
|
||||
const slugify = require('slugify')
|
||||
|
||||
const jwennTeksEpiId = async data => {
|
||||
@@ -20,7 +20,7 @@ const jwennAwtisEpiId = async id => {
|
||||
|
||||
const validateArtiste = alias => {
|
||||
if (!alias || alias.trim().length === 0) {
|
||||
throw new ValidationError('Champ obligatoire. Veuillez choisir un alias.');
|
||||
throw new ApplicationError('Champ obligatoire. Veuillez choisir un alias.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user