From 1036540a0040a13b74a017273778b413e40f46a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 1 Apr 2020 16:14:24 +0200 Subject: [PATCH] Clean up --- .../schema/resolvers/notifications.spec.js | 23 ------------------- backend/src/schema/resolvers/reports.js | 1 + 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/backend/src/schema/resolvers/notifications.spec.js b/backend/src/schema/resolvers/notifications.spec.js index a4206dccb..06c488d97 100644 --- a/backend/src/schema/resolvers/notifications.spec.js +++ b/backend/src/schema/resolvers/notifications.spec.js @@ -230,29 +230,6 @@ describe('given some notifications', () => { ... on Comment { content } - # Wolle ... on Report { - # id - # filed { - # reasonCategory - # reasonDescription - # reportedResource { - # __typename - # ... on User { - # id - # name - # } - # ... on Post { - # id - # title - # content - # } - # ... on Comment { - # id - # content - # } - # } - # } - # } ... on FiledReport { reportId reasonCategory diff --git a/backend/src/schema/resolvers/reports.js b/backend/src/schema/resolvers/reports.js index 8bc707401..f1cf90856 100644 --- a/backend/src/schema/resolvers/reports.js +++ b/backend/src/schema/resolvers/reports.js @@ -84,6 +84,7 @@ export default { const reportsReadTxPromise = session.readTransaction(async (transaction) => { const reportsTransactionResponse = await transaction.run( + // Wolle // !!! this Cypher query returns multiple reports on the same resource! i will create an issue for refactoring (bug fixing) ` MATCH (report:Report)-[:BELONGS_TO]->(resource)