diff --git a/backend/src/db/clean.js b/backend/src/db/clean.js index db4e10bdf..eac26036c 100644 --- a/backend/src/db/clean.js +++ b/backend/src/db/clean.js @@ -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!`) diff --git a/backend/src/db/seed.js b/backend/src/db/seed.js index 92d49e98f..46c5870e0 100644 --- a/backend/src/db/seed.js +++ b/backend/src/db/seed.js @@ -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'