mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Cleaning the database checks for process.env
This commit is contained in:
parent
0289412ba7
commit
e3b4e9bf56
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user