@@ -308,7 +308,7 @@ export const applicationStageResolvers: any = {
308308 const notification = await ApplicantNotificationsModel . create ( {
309309 userId : user ! . _id ,
310310 message,
311- eventType : "general " ,
311+ eventType : "applicationUpdate " ,
312312 } ) ;
313313
314314 await sendEmailTemplate (
@@ -329,6 +329,7 @@ export const applicationStageResolvers: any = {
329329 id : notification . _id ,
330330 createdAt : notification . createdAt ,
331331 read : notification . read ,
332+ eventType : "applicationUpdate" ,
332333 } )
333334 . catch ( ( error ) => {
334335 console . error ( "Error with Pusher trigger:" , error ) ;
@@ -355,7 +356,7 @@ export const applicationStageResolvers: any = {
355356 const notification1 = await ApplicantNotificationsModel . create ( {
356357 userId : user ! . _id ,
357358 message,
358- eventType : "general " ,
359+ eventType : "applicationUpdate " ,
359360 } ) ;
360361
361362 await sendEmailTemplate (
@@ -379,6 +380,7 @@ export const applicationStageResolvers: any = {
379380 id : notification1 . _id ,
380381 createdAt : notification1 . createdAt ,
381382 read : notification1 . read ,
383+ eventType : "applicationUpdate" ,
382384 } )
383385 . catch ( ( error ) => {
384386 console . error ( "Error with Pusher trigger:" , error ) ;
@@ -440,7 +442,7 @@ export const applicationStageResolvers: any = {
440442 const notification2 = await ApplicantNotificationsModel . create ( {
441443 userId : user ! . _id ,
442444 message,
443- eventType : "general " ,
445+ eventType : "applicationUpdate " ,
444446 } ) ;
445447
446448 await sendEmailTemplate (
@@ -464,6 +466,7 @@ export const applicationStageResolvers: any = {
464466 id : notification2 . _id ,
465467 createdAt : notification2 . createdAt ,
466468 read : notification2 . read ,
469+ eventType : "applicationUpdate" ,
467470 } )
468471 . catch ( ( error ) => {
469472 console . error ( "Error with Pusher trigger:" , error ) ;
@@ -499,7 +502,7 @@ export const applicationStageResolvers: any = {
499502 const notification3 = await ApplicantNotificationsModel . create ( {
500503 userId : user ! . _id ,
501504 message,
502- eventType : "general " ,
505+ eventType : "applicationUpdate " ,
503506 } ) ;
504507
505508 await sendEmailTemplate (
@@ -520,6 +523,7 @@ export const applicationStageResolvers: any = {
520523 id : notification3 . _id ,
521524 createdAt : notification3 . createdAt ,
522525 read : notification3 . read ,
526+ eventType : "applicationUpdate" ,
523527 } )
524528 . catch ( ( error ) => {
525529 console . error ( "Error with Pusher trigger:" , error ) ;
@@ -547,7 +551,7 @@ export const applicationStageResolvers: any = {
547551 const notification4 = await ApplicantNotificationsModel . create ( {
548552 userId : user ! . _id ,
549553 message,
550- eventType : "general" ,
554+ eventType : "applicationUpdate" ,
551555 } ) ;
552556
553557 await sendEmailTemplate (
@@ -568,6 +572,7 @@ export const applicationStageResolvers: any = {
568572 id : notification4 . _id ,
569573 createdAt : notification4 . createdAt ,
570574 read : notification4 . read ,
575+ eventType : "applicationUpdate" ,
571576 } )
572577 . catch ( ( error ) => {
573578 console . error ( "Error with Pusher trigger:" , error ) ;
0 commit comments