@@ -23,11 +23,11 @@ export default function setupNotificationListenersEnvironment() {
2323 recipient : adminRecipients ,
2424 message : {
2525 subject : "New Environment Created" ,
26- body : `A new environment "${ data . name } " has been created by ${ data . createdBy || 'unknown' } .` ,
26+ body : `A new environment "${ data . name } " has been created.` ,
2727 attachments : [ ] ,
2828 pushNotification : {
2929 title : "New Environment" ,
30- body : `${ data . name } has been created by ${ data . createdBy || 'unknown' } ` ,
30+ body : `${ data . name } has been created. ` ,
3131 } ,
3232 } ,
3333 schedule : undefined ,
@@ -54,11 +54,11 @@ export default function setupNotificationListenersEnvironment() {
5454 recipient : adminRecipients ,
5555 message : {
5656 subject : "New Zone Created" ,
57- body : `A new zone "${ data . zoneName } " has been created by ${ data . createdBy || 'unknown' } .` ,
57+ body : `A new zone "${ data . zoneName } " has been created.` ,
5858 attachments : [ ] ,
5959 pushNotification : {
6060 title : "New Zone" ,
61- body : `${ data . zoneName } has been created by ${ data . createdBy || 'unknown' } ` ,
61+ body : `${ data . zoneName } has been created. ` ,
6262 } ,
6363 } ,
6464 schedule : undefined ,
@@ -85,11 +85,11 @@ export default function setupNotificationListenersEnvironment() {
8585 recipient : adminRecipients ,
8686 message : {
8787 subject : "Zone Updated" ,
88- body : `The zone "${ data . zoneName } " has been updated by ${ data . updatedBy || 'unknown' } .` ,
88+ body : `The zone "${ data . zoneName } " has been updated.` ,
8989 attachments : [ ] ,
9090 pushNotification : {
9191 title : "Zone Updated" ,
92- body : `${ data . zoneName } has been updated by ${ data . updatedBy || 'unknown' } ` ,
92+ body : `${ data . zoneName } has been updated. ` ,
9393 } ,
9494 } ,
9595 schedule : undefined ,
@@ -116,11 +116,11 @@ export default function setupNotificationListenersEnvironment() {
116116 recipient : adminRecipients ,
117117 message : {
118118 subject : "Zone Deleted" ,
119- body : `The zone "${ data . zoneId } " has been deleted by ${ data . deletedBy || 'unknown' } .` ,
119+ body : `The zone "${ data . zoneId } " has been deleted.` ,
120120 attachments : [ ] ,
121121 pushNotification : {
122122 title : "Zone Deleted" ,
123- body : `${ data . zoneId } has been deleted by ${ data . deletedBy || 'unknown' } ` ,
123+ body : `${ data . zoneId } has been deleted. ` ,
124124 } ,
125125 } ,
126126 schedule : undefined ,
@@ -148,11 +148,11 @@ export default function setupNotificationListenersEnvironment() {
148148 recipient : adminRecipients ,
149149 message : {
150150 subject : "New POI Created" ,
151- body : `A new POI "${ data . poiName } " has been created by ${ data . createdBy || 'unknown' } .` ,
151+ body : `A new POI "${ data . poiName } " has been created.` ,
152152 attachments : [ ] ,
153153 pushNotification : {
154154 title : "New POI" ,
155- body : `${ data . poiName } has been created by ${ data . createdBy || 'unknown' } ` ,
155+ body : `${ data . poiName } has been created` ,
156156 } ,
157157 } ,
158158 schedule : undefined ,
@@ -178,11 +178,11 @@ export default function setupNotificationListenersEnvironment() {
178178 recipient : adminRecipients ,
179179 message : {
180180 subject : "POI Updated" ,
181- body : `The POI "${ data . poiName } " has been updated by ${ data . updatedBy || 'unknown' } .` ,
181+ body : `The POI "${ data . poiName } " has been updated.` ,
182182 attachments : [ ] ,
183183 pushNotification : {
184184 title : "POI Updated" ,
185- body : `${ data . poiName } has been updated by ${ data . updatedBy || 'unknown' } ` ,
185+ body : `${ data . poiName } has been updated. ` ,
186186 } ,
187187 } ,
188188 schedule : undefined ,
@@ -208,11 +208,11 @@ export default function setupNotificationListenersEnvironment() {
208208 recipient : adminRecipients ,
209209 message : {
210210 subject : "POI Deleted" ,
211- body : `The POI "${ data . poiId } " has been deleted by ${ data . deletedBy || 'unknown' } .` ,
211+ body : `The POI "${ data . poiId } " has been deleted.` ,
212212 attachments : [ ] ,
213213 pushNotification : {
214214 title : "POI Deleted" ,
215- body : `${ data . poiId } has been deleted by ${ data . deletedBy || 'unknown' } ` ,
215+ body : `${ data . poiId } has been deleted. ` ,
216216 } ,
217217 } ,
218218 schedule : undefined ,
@@ -239,11 +239,11 @@ export default function setupNotificationListenersEnvironment() {
239239 recipient : adminRecipients ,
240240 message : {
241241 subject : "New Floor Created" ,
242- body : `A new floor "${ data . floorName } " has been created by ${ data . createdBy || 'unknown' } .` ,
242+ body : `A new floor "${ data . floorName } " has been created.` ,
243243 attachments : [ ] ,
244244 pushNotification : {
245245 title : "New Floor" ,
246- body : `${ data . floorName } has been created at environment ${ data . environmentId } by ${ data . createdBy || 'unknown' } ` ,
246+ body : `${ data . floorName } has been created at environment ${ data . environmentId } . ` ,
247247 } ,
248248 } ,
249249 schedule : undefined ,
@@ -269,11 +269,11 @@ export default function setupNotificationListenersEnvironment() {
269269 recipient : adminRecipients ,
270270 message : {
271271 subject : "Floor Updated" ,
272- body : `The floor "${ data . floorId } " has been updated by ${ data . updatedBy || 'unknown' } .` ,
272+ body : `The floor "${ data . floorId } " has been updated.` ,
273273 attachments : [ ] ,
274274 pushNotification : {
275275 title : "Floor Updated" ,
276- body : `${ data . floorId } has been updated by ${ data . updatedBy || 'unknown' } ` ,
276+ body : `${ data . floorId } has been updated. ` ,
277277 } ,
278278 } ,
279279 schedule : undefined ,
@@ -298,11 +298,11 @@ export default function setupNotificationListenersEnvironment() {
298298 recipient : adminRecipients ,
299299 message : {
300300 subject : "Floor Deleted" ,
301- body : `The floor "${ data . floorId } " has been deleted by ${ data . deletedBy || 'unknown' } .` ,
301+ body : `The floor "${ data . floorId } " has been deleted.` ,
302302 attachments : [ ] ,
303303 pushNotification : {
304304 title : "Floor Deleted" ,
305- body : `${ data . floorId } has been deleted by ${ data . deletedBy || 'unknown' } ` ,
305+ body : `${ data . floorId } has been deleted. ` ,
306306 } ,
307307 } ,
308308 schedule : undefined ,
0 commit comments