feat(notifications): on update available (#352)

This commit is contained in:
Ludvig Lundgren 2022-07-12 14:47:08 +02:00 committed by GitHub
parent b4589243de
commit 2a3a839081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 326 additions and 18 deletions

View file

@ -128,7 +128,9 @@ func (s *service) registerSenders() {
// Send notifications
func (s *service) Send(event domain.NotificationEvent, payload domain.NotificationPayload) {
s.log.Debug().Msgf("sending notification for %v", string(event))
if len(s.senders) > 0 {
s.log.Debug().Msgf("sending notification for %v", string(event))
}
go func() {
for _, sender := range s.senders {