fix config parsing 🤣

This commit is contained in:
Roberto Hidalgo 2023-04-16 16:19:40 -06:00
parent 55df303d2b
commit 79464b08ec
2 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@ import (
)
type VAPIDKey struct {
Private string
Public string
Private string `yaml:"private"`
Public string `yaml:"public"`
}
type Config struct {
Key *VAPIDKey
Key *VAPIDKey `yaml:"key"`
}
type Notifier struct {

View File

@ -140,7 +140,7 @@ func notifyAdmins(message string) {
logrus.Errorf("could not fetch subscriptions: %s", err)
}
logrus.Infof("notifying %v admins", subs[0].AsWebPush())
logrus.Infof("notifying %v admins", len(subs))
for _, sub := range subs {
err := push.Notify(message, sub)