This commit is contained in:
David Arranz 2019-11-13 12:21:10 +01:00
parent db26c250c6
commit 39a449e894
2 changed files with 4 additions and 4 deletions

View File

@ -28,8 +28,6 @@ createNotificationValidatedInscription = (inscription) => {
...jsonNotification,
date: moment(),
priority: "high",
_displayInForeground: true,
sound: 'default',
recipients: {
"userIds": [
inscription.user.id,

View File

@ -4,7 +4,7 @@ const { Expo } = require('expo-server-sdk');
const expo = new Expo();
const createPushMessage = (data) => {
return {
const pushMessage = {
title: data.title,
body: data.body,
ttl: data.ttl,
@ -18,7 +18,9 @@ const createPushMessage = (data) => {
android: {
channelId: 'lqdvi-messages'
}
}
};
console.log(pushMessage);
return pushMessage;
};