ver: 0.1.2

Created Test Environment test.freeplanet.app
and Server: /var/www/test.freeplanet_server
This commit is contained in:
Paolo Arena
2021-09-28 23:46:14 +02:00
parent 396bfea289
commit 177489521d
2 changed files with 5 additions and 42 deletions

View File

@@ -751,23 +751,16 @@ module.exports = {
};
console.log('************ INVIO WEBPUSH.SENDNOTIFICATION N° ', conta, '/', trovati, 'A', subscription.browser);
// console.log('vapidDetails', pushOptions.vapidDetails);
// payload.title = process.env.URLBASE_APP1 + ' Msg n° ' + conta + '/' + trovati;
// payload.message += subscription.browser ;
const pushPayload = JSON.stringify(payload);
// console.log('A1) SUBS: pushSubscription', pushSubscription);
// console.log('A2) OPZIONI: pushOptions', pushOptions);
// console.log('A3) MSG_TO_SEND: pushPayload', pushPayload);
webpush.sendNotification(
pushSubscription,
pushPayload,
// pushOptions
pushOptions
).then((value) => {
console.log('Invio Push', value);
// console.log('Invio Push', value);
resolve({
status: true,
endpoint: subscription.endpoint,
@@ -1807,38 +1800,6 @@ module.exports = {
}
}
if (table === 'listaingressos') {
if ('invitante_username' in fieldsvalue) {
return true;
}
if ('username' in fieldsvalue) {
return true;
}
if ('note' in fieldsvalue) {
return true;
}
}
if (table === 'navi') {
if ('date_made_gift' in fieldsvalue) {
return true;
}
if ('made_gift' in fieldsvalue) {
return true;
}
if ('note' in fieldsvalue) {
return true;
}
}
if (table === 'navepersistente') {
if ('link_chat' in fieldsvalue) {
return true;
}
}
if (table === 'flotte') {
return true;
}
return false;
},