mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
784e1fd911
commit
afe47e84c0
@ -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,
|
||||
|
||||
@ -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 },
|
||||
}
|
||||
}
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user