From 8332a6117f524062edbba687b8547bd2a0c6898c Mon Sep 17 00:00:00 2001 From: betimshahini Date: Mon, 31 Jul 2023 15:37:28 -0400 Subject: [PATCH] fix(edges): Remove now-broken validation check (#2566) --- platform/edges/src/jsonrpc/methods/deleteNode.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/platform/edges/src/jsonrpc/methods/deleteNode.ts b/platform/edges/src/jsonrpc/methods/deleteNode.ts index 46a1464630..773461f045 100644 --- a/platform/edges/src/jsonrpc/methods/deleteNode.ts +++ b/platform/edges/src/jsonrpc/methods/deleteNode.ts @@ -24,13 +24,5 @@ export const deleteNodeMethod = async ({ const statement = remove.node(ctx.graph, nodeUrn) const deleted = await ctx.graph.db.batch([statement]) - if ( - deleted.length > 1 || - (deleted.length === 1 && deleted[0].meta && deleted[0].meta.changes > 1) - ) - //This should never happen, but adding just in case - throw new InternalServerError({ - message: 'Node deletion returned more than one result.', - }) return { deleted: deleted[0].meta.changes === 1 } }