fix config parsing 🤣
This commit is contained in:
parent
55df303d2b
commit
79464b08ec
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user