diff --git a/backend/src/seed/reset-db.js b/backend/src/seed/reset-db.js index 5f4319f73..125d135d8 100644 --- a/backend/src/seed/reset-db.js +++ b/backend/src/seed/reset-db.js @@ -1,8 +1,7 @@ import { cleanDatabase } from './factories' -import CONFIG from './../config' -if (!CONFIG.DEBUG) { - throw new Error(`YOU CAN'T CLEAN THE DATABASE WITH DEBUG=${CONFIG.DEBUG}`) +if (process.env.NODE_ENV === 'production') { + throw new Error(`You cannot clean the database in production environment!`) } ;(async function() {