.
This commit is contained in:
parent
db26c250c6
commit
39a449e894
@ -28,8 +28,6 @@ createNotificationValidatedInscription = (inscription) => {
|
||||
...jsonNotification,
|
||||
date: moment(),
|
||||
priority: "high",
|
||||
_displayInForeground: true,
|
||||
sound: 'default',
|
||||
recipients: {
|
||||
"userIds": [
|
||||
inscription.user.id,
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user