mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-02-06 09:56:03 +00:00
remove console statement, lint fixes
This commit is contained in:
parent
bfca086e7b
commit
ceed23893a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user