fix config parsing 🤣
This commit is contained in:
parent
55df303d2b
commit
79464b08ec
@ -6,12 +6,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type VAPIDKey struct {
|
type VAPIDKey struct {
|
||||||
Private string
|
Private string `yaml:"private"`
|
||||||
Public string
|
Public string `yaml:"public"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Key *VAPIDKey
|
Key *VAPIDKey `yaml:"key"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Notifier struct {
|
type Notifier struct {
|
||||||
|
@ -140,7 +140,7 @@ func notifyAdmins(message string) {
|
|||||||
logrus.Errorf("could not fetch subscriptions: %s", err)
|
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 {
|
for _, sub := range subs {
|
||||||
err := push.Notify(message, sub)
|
err := push.Notify(message, sub)
|
||||||
|
Loading…
Reference in New Issue
Block a user