Fix undefined 'CONFIG' in 'seed.js'

This commit is contained in:
Wolfgang Huß 2022-07-20 08:58:23 +02:00
parent 089c4ee1bb
commit 2afd0828eb
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import { cleanDatabase } from '../db/factories'
import CONFIG from '../config'
import { cleanDatabase } from '../db/factories'
if (CONFIG.PRODUCTION && !CONFIG.PRODUCTION_DB_CLEAN_ALLOW) {
throw new Error(`You cannot clean the database in a non-staging and real production environment!`)

View File

@ -1,5 +1,6 @@
import sample from 'lodash/sample'
import { createTestClient } from 'apollo-server-testing'
import CONFIG from '../config'
import createServer from '../server'
import faker from '@faker-js/faker'
import Factory from '../db/factories'