The "Assigned to me" and "Raised by me" buttons within the PlatOps Help Bot should now be functioning as expected.
The issue was caused by the convertEmail function returning a Promise object instead of the correct user information.
The problem was resolved by ensuring that the email being passed to the convertEmail function was properly awaited. This involved updating the caller functions to use the await keyword, ensuring that the email was fully resolved before being used.
Checklist
[x] commit messages are meaningful and follow good commit message guidelines
[x] README and other documentation has been updated / added (if needed)
[x] tests have been updated / new tests has been added (if needed)
Jira link
https://tools.hmcts.net/jira/browse/DTSPO-18981
Change description
The "Assigned to me" and "Raised by me" buttons within the PlatOps Help Bot should now be functioning as expected.
The issue was caused by the convertEmail function returning a Promise object instead of the correct user information.
The problem was resolved by ensuring that the email being passed to the convertEmail function was properly awaited. This involved updating the caller functions to use the await keyword, ensuring that the email was fully resolved before being used.
Checklist