From 544e33659515b19f8e28aee7b5d241969247f288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 13 Apr 2020 09:58:42 +0200 Subject: [PATCH] Cleanup --- .../20200123150105-merge_duplicate_user_accounts.js | 2 +- ...d_relationship_between_existing_blocked_relationships.js | 2 +- .../20200206190233-swap_latitude_with_longitude.js | 2 +- .../db/migrations/20200207080200-fulltext_index_for_tags.js | 2 +- .../20200213230248-add_unique_index_to_image_url.js | 2 +- .../src/db/migrations/20200312140328-bulk_upload_to_s3.js | 2 +- .../20200320200315-refactor_all_images_to_separate_type.js | 2 +- ...200323140300-remove_deleted_users_obsolete_attributes.js | 2 +- ...200323160336-remove_deleted_posts_obsolete_attributes.js | 2 +- .../migrations/20200326160326-remove_dangling_image_urls.js | 2 +- webapp/graphql/User.js | 6 +++--- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/backend/src/db/migrations/20200123150105-merge_duplicate_user_accounts.js b/backend/src/db/migrations/20200123150105-merge_duplicate_user_accounts.js index 0914d6b22..7885e7c02 100644 --- a/backend/src/db/migrations/20200123150105-merge_duplicate_user_accounts.js +++ b/backend/src/db/migrations/20200123150105-merge_duplicate_user_accounts.js @@ -1,7 +1,7 @@ import { throwError, concat } from 'rxjs' import { flatMap, mergeMap, map, catchError, filter } from 'rxjs/operators' import { getDriver } from '../neo4j' -import normalizeEmail from '../../schema/resolvers//helpers/normalizeEmail' +import normalizeEmail from '../../schema/resolvers/helpers/normalizeEmail' export const description = ` This migration merges duplicate :User and :EmailAddress nodes. It became diff --git a/backend/src/db/migrations/20200127110135-create_muted_relationship_between_existing_blocked_relationships.js b/backend/src/db/migrations/20200127110135-create_muted_relationship_between_existing_blocked_relationships.js index ce46be9d6..ca15644d1 100644 --- a/backend/src/db/migrations/20200127110135-create_muted_relationship_between_existing_blocked_relationships.js +++ b/backend/src/db/migrations/20200127110135-create_muted_relationship_between_existing_blocked_relationships.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = ` This migration creates a MUTED relationship between two edges(:User) that have a pre-existing BLOCKED relationship. diff --git a/backend/src/db/migrations/20200206190233-swap_latitude_with_longitude.js b/backend/src/db/migrations/20200206190233-swap_latitude_with_longitude.js index 94a2f442d..73c329bfc 100644 --- a/backend/src/db/migrations/20200206190233-swap_latitude_with_longitude.js +++ b/backend/src/db/migrations/20200206190233-swap_latitude_with_longitude.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = ` This migration swaps the value stored in Location.lat with the value diff --git a/backend/src/db/migrations/20200207080200-fulltext_index_for_tags.js b/backend/src/db/migrations/20200207080200-fulltext_index_for_tags.js index ffcd3d4b6..8ef6976a3 100644 --- a/backend/src/db/migrations/20200207080200-fulltext_index_for_tags.js +++ b/backend/src/db/migrations/20200207080200-fulltext_index_for_tags.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = 'This migration adds a fulltext index for the tags in order to search for Hasthags.' diff --git a/backend/src/db/migrations/20200213230248-add_unique_index_to_image_url.js b/backend/src/db/migrations/20200213230248-add_unique_index_to_image_url.js index 4582d938c..a474b36ea 100644 --- a/backend/src/db/migrations/20200213230248-add_unique_index_to_image_url.js +++ b/backend/src/db/migrations/20200213230248-add_unique_index_to_image_url.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = ` We introduced a new node label 'Image' and we need a primary key for it. Best diff --git a/backend/src/db/migrations/20200312140328-bulk_upload_to_s3.js b/backend/src/db/migrations/20200312140328-bulk_upload_to_s3.js index ee9aba023..ef588967a 100644 --- a/backend/src/db/migrations/20200312140328-bulk_upload_to_s3.js +++ b/backend/src/db/migrations/20200312140328-bulk_upload_to_s3.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' import { existsSync, createReadStream } from 'fs' import path from 'path' import { S3 } from 'aws-sdk' diff --git a/backend/src/db/migrations/20200320200315-refactor_all_images_to_separate_type.js b/backend/src/db/migrations/20200320200315-refactor_all_images_to_separate_type.js index 1ad5e645d..6f347b99b 100644 --- a/backend/src/db/migrations/20200320200315-refactor_all_images_to_separate_type.js +++ b/backend/src/db/migrations/20200320200315-refactor_all_images_to_separate_type.js @@ -1,5 +1,5 @@ /* eslint-disable no-console */ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = ` Refactor all our image properties on posts and users to a dedicated type diff --git a/backend/src/db/migrations/20200323140300-remove_deleted_users_obsolete_attributes.js b/backend/src/db/migrations/20200323140300-remove_deleted_users_obsolete_attributes.js index e4852f79c..a8880d8e8 100644 --- a/backend/src/db/migrations/20200323140300-remove_deleted_users_obsolete_attributes.js +++ b/backend/src/db/migrations/20200323140300-remove_deleted_users_obsolete_attributes.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = 'We should not maintain obsolete attributes for users who have been deleted.' diff --git a/backend/src/db/migrations/20200323160336-remove_deleted_posts_obsolete_attributes.js b/backend/src/db/migrations/20200323160336-remove_deleted_posts_obsolete_attributes.js index 8c1efe5c6..70d81e5c0 100644 --- a/backend/src/db/migrations/20200323160336-remove_deleted_posts_obsolete_attributes.js +++ b/backend/src/db/migrations/20200323160336-remove_deleted_posts_obsolete_attributes.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' export const description = 'We should not maintain obsolete attributes for posts which have been deleted.' diff --git a/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js b/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js index a77ac360c..58b43d05f 100644 --- a/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js +++ b/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js @@ -1,4 +1,4 @@ -import { getDriver } from '../../db/neo4j' +import { getDriver } from '../neo4j' import { existsSync } from 'fs' export const description = ` diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index dbbec788c..47715e943 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -61,7 +61,7 @@ export const minimisedUserQuery = () => { ` } -// properties have be in all notifications queries, mutations, and subscriptions here the same !!! +// properties have to be in all notifications queries, mutations, and subscriptions here the same !!! export const notificationQuery = (i18n) => { return gql` ${userFragment} @@ -130,7 +130,7 @@ export const notificationQuery = (i18n) => { ` } -// properties have be in all notifications queries, mutations, and subscriptions here the same !!! +// properties have to be in all notifications queries, mutations, and subscriptions here the same !!! export const markAsReadMutation = (i18n) => { return gql` ${userFragment} @@ -199,7 +199,7 @@ export const markAsReadMutation = (i18n) => { ` } -// properties have be in all notifications queries, mutations, and subscriptions here the same !!! +// properties have to be in all notifications queries, mutations, and subscriptions here the same !!! export const notificationAdded = () => { return gql` ${userFragment}