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

@@ -25,7 +25,7 @@ func (svc *Service) Init() (err error) {
func (svc *Service) initData() (err error) {
total, err := svc.col.Count(bson.M{
"key": "site_title",
"key": "customize",
})
if err != nil {
return err
@@ -38,10 +38,13 @@ func (svc *Service) initData() (err error) {
settings := []models.Setting{
{
Id: primitive.NewObjectID(),
Key: "site_title",
Key: "customize",
Value: bson.M{
"customize_site_title": false,
"site_title": "",
"show_custom_title": false,
"custom_title": "",
"show_custom_logo": false,
"custom_logo": "",
"hide_platform_version": false,
},
},
}