Remove the organizations for now

We haven't implemented them at all, so I would prefer not to have
obscure data in the database.
This commit is contained in:
roschaefer 2019-09-02 17:19:15 +02:00
parent 784e1fd911
commit afe47e84c0
3 changed files with 0 additions and 46 deletions

View File

@ -2,7 +2,6 @@ import { GraphQLClient, request } from 'graphql-request'
import { getDriver, neode } from '../../bootstrap/neo4j'
import createBadge from './badges.js'
import createUser from './users.js'
import createOrganization from './organizations.js'
import createPost from './posts.js'
import createComment from './comments.js'
import createCategory from './categories.js'
@ -24,7 +23,6 @@ const authenticatedHeaders = async ({ email, password }, host) => {
const factories = {
Badge: createBadge,
User: createUser,
Organization: createOrganization,
Post: createPost,
Comment: createComment,
Category: createCategory,

View File

@ -1,21 +0,0 @@
import faker from 'faker'
import uuid from 'uuid/v4'
export default function create(params) {
const {
id = uuid(),
name = faker.company.companyName(),
description = faker.company.catchPhrase(),
} = params
return {
mutation: `
mutation($id: ID!, $name: String!, $description: String!) {
CreateOrganization(id: $id, name: $name, description: $description) {
name
}
}
`,
variables: { id, name, description },
}
}

View File

@ -692,29 +692,6 @@ import Factory from './factories'
}),
])
await Promise.all([
f.create('Organization', {
id: 'o1',
name: 'Democracy Deutschland',
description: 'Description for democracy-deutschland.',
}),
f.create('Organization', {
id: 'o2',
name: 'Human-Connection',
description: 'Description for human-connection.',
}),
f.create('Organization', {
id: 'o3',
name: 'Pro Veg',
description: 'Description for pro-veg.',
}),
f.create('Organization', {
id: 'o4',
name: 'Greenpeace',
description: 'Description for greenpeace.',
}),
])
await Promise.all([
f.relate('Organization', 'CreatedBy', {
from: 'u1',