From ceed23893ad8c495021ec407c713cd52b7673c38 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 20 Mar 2023 22:36:43 +0100 Subject: [PATCH] remove console statement, lint fixes --- .../migrations/20230320130345-fulltext-search-indexes.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/src/db/migrations/20230320130345-fulltext-search-indexes.js b/backend/src/db/migrations/20230320130345-fulltext-search-indexes.js index 73040adf7..11029bea6 100644 --- a/backend/src/db/migrations/20230320130345-fulltext-search-indexes.js +++ b/backend/src/db/migrations/20230320130345-fulltext-search-indexes.js @@ -11,14 +11,13 @@ export async function up(next) { // Drop indexes if they exist because due to legacy code they might be set already const indexesResponse = await transaction.run(`CALL db.indexes()`) const indexes = indexesResponse.records.map((record) => record.get('indexName')) - console.log(indexes) - if(indexes.indexOf('user_fulltext_search') > -1){ + if (indexes.indexOf('user_fulltext_search') > -1) { await transaction.run(`CALL db.index.fulltext.drop("user_fulltext_search")`) } - if(indexes.indexOf('post_fulltext_search') > -1){ + if (indexes.indexOf('post_fulltext_search') > -1) { await transaction.run(`CALL db.index.fulltext.drop("post_fulltext_search")`) } - if(indexes.indexOf('tag_fulltext_search') > -1){ + if (indexes.indexOf('tag_fulltext_search') > -1) { await transaction.run(`CALL db.index.fulltext.drop("tag_fulltext_search")`) } // Create indexes