Skip to content

Commit

Permalink
fix(su): fix assign case #732
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceJuliano committed May 29, 2024
1 parent 0c83133 commit 503c811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions servers/su/src/domain/core/flows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ pub async fn read_message_data(
) -> Result<String, String> {
if let Ok(message) = deps.data_store.get_message(&tx_id) {
if message.message.is_some()
|| (message.message_id()? != message.process_id()?)
|| (message.assignment_id()? == tx_id)
/*
Im not exactly sure of the use cases for these edge cases
but they are ones that have popped up that cause the message
list to not be able to be returned.
*/
|| ((message.message_id()? != message.process_id()?) && (message.assignment_id()? == tx_id) )
{
return serde_json::to_string(&message)
.map_err(|e| format!("{:?}", e));
Expand Down
Binary file modified servers/su/su
Binary file not shown.

0 comments on commit 503c811

Please sign in to comment.