Skip to content

Commit b27b79b

Browse files
committed
fix: Error handling for unique constraints
1 parent 12fca15 commit b27b79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layers/Neo4j/createUniqueIndex.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const createUniqueIndex = async (
1414
REQUIRE node.${propertyName} IS UNIQUE
1515
`))
1616
} catch (error) {
17-
throw error
17+
return
1818
} finally {
1919
await neo4jSession.close()
2020
}

0 commit comments

Comments
 (0)