Compare commits
2 Commits
b2a72c2f6e
...
cd0ae19d03
| Author | SHA1 | Date | |
|---|---|---|---|
| cd0ae19d03 | |||
| 75353f8bdd |
|
|
@ -68,6 +68,10 @@ func New(
|
|||
config: cfg,
|
||||
}
|
||||
|
||||
mongoLogger.Info("FCM_SERVICE_ACCOUNT_KEY value at startup",
|
||||
zap.String("fcm_service_account_key", cfg.FCMServiceAccountKey),
|
||||
)
|
||||
|
||||
// Initialize FCM client if service account key is provided
|
||||
if cfg.FCMServiceAccountKey != "" {
|
||||
if err := svc.initFCMClient(); err != nil {
|
||||
|
|
|
|||
|
|
@ -727,6 +727,9 @@ func (h *Handler) RegisterDeviceToken(c *fiber.Ctx) error {
|
|||
func (h *Handler) SendTestPushNotification(c *fiber.Ctx) error {
|
||||
title := c.FormValue("title", "Test Push Notification")
|
||||
message := c.FormValue("message", "This is a test push notification from Yimaru Backend")
|
||||
h.mongoLoggerSvc.Info("FCM_SERVICE_ACCOUNT_KEY value during test-push call",
|
||||
zap.String("fcm_service_account_key", h.Cfg.FCMServiceAccountKey),
|
||||
)
|
||||
|
||||
userID, ok := c.Locals("user_id").(int64)
|
||||
if !ok || userID == 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user