mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix undefined 'CONFIG' in 'seed.js'
This commit is contained in:
parent
089c4ee1bb
commit
2afd0828eb
@ -1,5 +1,5 @@
|
|||||||
import { cleanDatabase } from '../db/factories'
|
|
||||||
import CONFIG from '../config'
|
import CONFIG from '../config'
|
||||||
|
import { cleanDatabase } from '../db/factories'
|
||||||
|
|
||||||
if (CONFIG.PRODUCTION && !CONFIG.PRODUCTION_DB_CLEAN_ALLOW) {
|
if (CONFIG.PRODUCTION && !CONFIG.PRODUCTION_DB_CLEAN_ALLOW) {
|
||||||
throw new Error(`You cannot clean the database in a non-staging and real production environment!`)
|
throw new Error(`You cannot clean the database in a non-staging and real production environment!`)
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import sample from 'lodash/sample'
|
import sample from 'lodash/sample'
|
||||||
import { createTestClient } from 'apollo-server-testing'
|
import { createTestClient } from 'apollo-server-testing'
|
||||||
|
import CONFIG from '../config'
|
||||||
import createServer from '../server'
|
import createServer from '../server'
|
||||||
import faker from '@faker-js/faker'
|
import faker from '@faker-js/faker'
|
||||||
import Factory from '../db/factories'
|
import Factory from '../db/factories'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user