From c8ea59aa2a1e5843cdb2f908abbec6dd5fcb6347 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 26 Nov 2024 22:28:37 +0800 Subject: [PATCH] :bug: Fix apns MissingTopic --- pkg/internal/provider/apns.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/internal/provider/apns.go b/pkg/internal/provider/apns.go index 6041495..1510f0c 100644 --- a/pkg/internal/provider/apns.go +++ b/pkg/internal/provider/apns.go @@ -5,7 +5,6 @@ import ( "github.com/rs/zerolog/log" "github.com/sideshow/apns2" payload2 "github.com/sideshow/apns2/payload" - "github.com/spf13/viper" ) type AppleNotifyProvider struct { @@ -37,7 +36,7 @@ func (v *AppleNotifyProvider) Push(in pushkit.Notification, tk string) error { } payload := &apns2.Notification{ DeviceToken: tk, - Topic: viper.GetString(v.topic), + Topic: v.topic, Payload: rawData, }