diff --git a/src/routes/images/index.js b/src/routes/images/index.js index 7573c44..4439ba7 100644 --- a/src/routes/images/index.js +++ b/src/routes/images/index.js @@ -2,7 +2,7 @@ import express from 'express' import { Pool } from 'pg' import { database } from '../../config' -const { check, validationResult } = require('express-validator/check') +const { check, validationResult } = require('express-validator') const router = express.Router() diff --git a/src/routes/locations/index.js b/src/routes/locations/index.js index 0baa08c..2fd32ac 100644 --- a/src/routes/locations/index.js +++ b/src/routes/locations/index.js @@ -2,7 +2,7 @@ import express from 'express' import { Pool } from 'pg' import { database } from '../../config' -const { check, validationResult } = require('express-validator/check') +const { check, validationResult } = require('express-validator') const router = express.Router()