From 835bfcaae035155242a532a8e8dd56d2dec19081 Mon Sep 17 00:00:00 2001 From: Taffy Date: Tue, 1 Nov 2022 12:13:39 -0700 Subject: [PATCH] fix dropIndexes() function fix for dropIndexes() function. --- src/js/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/utils.js b/src/js/utils.js index 3702ad39f..b3f431fb1 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -190,11 +190,11 @@ async function dropIndexes() { let session = driver.session(); let indexes = []; - let result = await session.run('CALL db.constraints') + let result = await session.run('CALL db.indexes') for (let record of result.records){ - let constraint = record.get(0) - let query = 'DROP INDEX ' + constraint; + let index = record.get(1) + let query = 'DROP INDEX ' + index; indexes.push(query) }