From 05e575d186270fa765f8da55f91775d239862eef Mon Sep 17 00:00:00 2001 From: Lahiru Maramba Date: Tue, 22 Oct 2024 17:41:23 -0400 Subject: [PATCH] fix(fcm): Change DirectBootOK per Go initialisms (#645) --- messaging/messaging.go | 2 +- messaging/messaging_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/messaging/messaging.go b/messaging/messaging.go index 2b362db8..2a846166 100644 --- a/messaging/messaging.go +++ b/messaging/messaging.go @@ -121,7 +121,7 @@ type AndroidConfig struct { Data map[string]string `json:"data,omitempty"` // if specified, overrides the Data field on Message type Notification *AndroidNotification `json:"notification,omitempty"` FCMOptions *AndroidFCMOptions `json:"fcm_options,omitempty"` - DirectBootOk bool `json:"direct_boot_ok,omitempty"` + DirectBootOK bool `json:"direct_boot_ok,omitempty"` } // MarshalJSON marshals an AndroidConfig into JSON (for internal use only). diff --git a/messaging/messaging_test.go b/messaging/messaging_test.go index 0603b6c0..7421fb7e 100644 --- a/messaging/messaging_test.go +++ b/messaging/messaging_test.go @@ -148,7 +148,7 @@ var validMessages = []struct { name: "AndroidDataMessage", req: &Message{ Android: &AndroidConfig{ - DirectBootOk: true, + DirectBootOK: true, CollapseKey: "ck", Data: map[string]string{ "k1": "v1",