From 3380a274c29d7f690470d195a4089344c65338e1 Mon Sep 17 00:00:00 2001 From: grahac Date: Tue, 24 Sep 2024 10:51:48 -0700 Subject: [PATCH] Moved inside module --- lib/pigeon/fcm/notification.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pigeon/fcm/notification.ex b/lib/pigeon/fcm/notification.ex index 8d4b6fa..21ab083 100644 --- a/lib/pigeon/fcm/notification.ex +++ b/lib/pigeon/fcm/notification.ex @@ -98,12 +98,13 @@ defmodule Pigeon.FCM.Notification do data: data } end -end -def set_apns(%Pigeon.FCM.Notification{} = notification, apns) do - %{notification | apns: apns} + def set_apns(%Pigeon.FCM.Notification{} = notification, apns) do + %{notification | apns: apns} + end end + defimpl Pigeon.Encodable, for: Pigeon.FCM.Notification do def binary_payload(notif) do encode_requests(notif)