refactor: code cleanup

This commit is contained in:
Marvin Zhang
2024-10-16 20:13:24 +08:00
parent e6e2c10ba6
commit dea7033db6
2 changed files with 0 additions and 14 deletions

View File

@@ -76,11 +76,6 @@ func CreateIndexesV2() {
{Keys: bson.M{"name": 1}},
})
// variables
mongo.GetMongoCol(service.GetCollectionNameByInstance(models2.VariableV2{})).MustCreateIndexes([]mongo2.IndexModel{
{Keys: bson.M{"key": 1}},
})
// data sources
mongo.GetMongoCol(service.GetCollectionNameByInstance(models2.DatabaseV2{})).MustCreateIndexes([]mongo2.IndexModel{
{Keys: bson.M{"name": 1}},