Skip to content

Commit

Permalink
fix(edges): Remove now-broken validation check (#2566)
Browse files Browse the repository at this point in the history
  • Loading branch information
betimshahini committed Jul 31, 2023
1 parent 12451eb commit 8332a61
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions platform/edges/src/jsonrpc/methods/deleteNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

0 comments on commit 8332a61

Please sign in to comment.