@@ -77,7 +77,7 @@ export class FcmProvider implements Provider<FcmNotification> {
7777 * */
7878 if ( receiverTokens . length >= 1 ) {
7979 const tokens = receiverTokens . map ( item => item . id ) ;
80- let msgToTransfer = {
80+ const msgToTransfer = {
8181 tokens : tokens ,
8282 ...generalMessageObj ,
8383 data : { ...message . options . data } ,
@@ -110,7 +110,7 @@ export class FcmProvider implements Provider<FcmNotification> {
110110 // Messages to multiple Topics is not allowed in single transaction.
111111
112112 topics . forEach ( topic => {
113- let msgToTransfer = {
113+ const msgToTransfer = {
114114 topic : topic . id ,
115115 ...generalMessageObj ,
116116 data : { ...message . options . data } ,
@@ -146,7 +146,7 @@ export class FcmProvider implements Provider<FcmNotification> {
146146 // Condition message
147147
148148 conditions . forEach ( condition => {
149- let msgToTransfer = {
149+ const msgToTransfer = {
150150 condition : condition . id ,
151151 ...generalMessageObj ,
152152 data : { ...message . options . data } ,
@@ -194,7 +194,7 @@ export class FcmProvider implements Provider<FcmNotification> {
194194 * precedence over normal notification
195195 *
196196 */
197- let generalMessageObj = {
197+ const generalMessageObj = {
198198 notification : standardNotifForFCM ,
199199 android : message . options . android ,
200200 webpush : message . options . webpush ,
0 commit comments