Skip to content

Commit 22f242a

Browse files
author
Jacopo Beschi
committed
Fix indent
1 parent c1ae7aa commit 22f242a

File tree

1 file changed

+16
-16
lines changed
  • lib/action_native_push/service

1 file changed

+16
-16
lines changed

lib/action_native_push/service/fcm.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ def initialize(notification)
2626

2727
def as_json
2828
deep_compact({
29-
message: {
30-
token: notification.token,
31-
# FCM requires data values to be strings.
32-
data: notification.custom_payload.compact.transform_values(&:to_s),
33-
android: {
34-
notification: {
35-
title: notification.title,
36-
body: notification.body,
37-
notification_count: notification.badge,
38-
sound: notification.sound
39-
},
40-
collapse_key: notification.thread_id,
41-
priority: notification.high_priority == true ? "high" : "normal"
42-
}
43-
}.deep_merge(notification.platform_payload[:fcm])
44-
})
29+
message: {
30+
token: notification.token,
31+
# FCM requires data values to be strings.
32+
data: notification.custom_payload.compact.transform_values(&:to_s),
33+
android: {
34+
notification: {
35+
title: notification.title,
36+
body: notification.body,
37+
notification_count: notification.badge,
38+
sound: notification.sound
39+
},
40+
collapse_key: notification.thread_id,
41+
priority: notification.high_priority == true ? "high" : "normal"
42+
}
43+
}.deep_merge(notification.platform_payload[:fcm])
44+
})
4545
end
4646

4747
private

0 commit comments

Comments
 (0)