diff --git a/internal/push/push.go b/internal/push/push.go index 9a63b62..915f00b 100644 --- a/internal/push/push.go +++ b/internal/push/push.go @@ -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 { diff --git a/internal/server/server.go b/internal/server/server.go index f4a71d7..3122247 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -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)