feat: Update notification trigger patterns and add alert trigger

This commit is contained in:
Marvin Zhang
2024-08-03 19:43:11 +08:00
parent dd6921d32b
commit a7da3a0442
5 changed files with 55 additions and 10 deletions

View File

@@ -68,7 +68,7 @@ func CreateIndexesV2() {
// settings
mongo.GetMongoCol(service.GetCollectionNameByInstance(models2.SettingV2{})).MustCreateIndexes([]mongo2.IndexModel{
{Keys: bson.M{"key": 1}},
{Keys: bson.D{{"key", 1}}, Options: options.Index().SetUnique(true)},
})
// tokens