In my real time before publish event i’m setting the message content but in the after event the old value is present not the new value.
This is from the log:
Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] [b30748af-e680-414d-aebf-e9c8d4cb0e72] [INVOKE HANDLER] messaging.beforePublish (RequestServices)
Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] { name: 'Joe', age: 30, ggg: '33333333' }
Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] Processing finished in 205.267ms
Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] [f3187e9c-6f9a-454e-997f-0fc43a6b03e7] [INVOKE HANDLER] messaging.afterPublish (*, async)
Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] { name: 'Joe', age: 30 }
Wed Jun 03 2020 20:14:56 GMT+0300 (Arabian Standard Time) | SERVER_CODE | INFO | [3622] Processing finished in 14.710ms