Implemented ESlint and passed down the rules
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
'use strict'
|
||||
// Bookshelf
|
||||
const bookshelf = require('../database/bookshelf').bookshelf
|
||||
const model = require('../models/meta-school-model')
|
||||
|
||||
// Model validation
|
||||
@@ -9,9 +7,6 @@ const validator = new Validator()
|
||||
const MetaSchoolValidation = require("../validations/MetaSchoolValidation")
|
||||
validator.addSchema(MetaSchoolValidation, "/MetaSchoolValidation")
|
||||
|
||||
// Validations
|
||||
const regexXSS = RegExp(/<[^>]*script/)
|
||||
|
||||
class MetaSchoolRepository {
|
||||
|
||||
constructor() {
|
||||
@@ -28,7 +23,7 @@ class MetaSchoolRepository {
|
||||
console.log(err)
|
||||
reject({
|
||||
"message": "Il n'existe aucune grande école disponible.",
|
||||
"code": 404,
|
||||
"code": 404
|
||||
});
|
||||
})
|
||||
})
|
||||
@@ -46,7 +41,7 @@ class MetaSchoolRepository {
|
||||
console.log(err)
|
||||
reject({
|
||||
"message": "La grande école en question n'a pas pu être trouvée.",
|
||||
"code": 404,
|
||||
"code": 404
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user