Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(su): fix process query returning an assignment #732 #738

Merged
merged 1 commit into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions servers/su/src/domain/core/flows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,13 @@ pub async fn read_message_data(
limit: Option<i32>,
) -> Result<String, String> {
if let Ok(message) = deps.data_store.get_message(&tx_id) {
let result = match serde_json::to_string(&message) {
Ok(r) => r,
Err(e) => return Err(format!("{:?}", e)),
};
return Ok(result);
if message.message.is_some()
|| (message.message_id()? != message.process_id()?)
|| (message.assignment_id()? == tx_id)
{
return serde_json::to_string(&message)
.map_err(|e| format!("{:?}", e));
}
}

if let Ok(_) = deps.data_store.get_process(&tx_id) {
Expand Down
Binary file modified servers/su/su
Binary file not shown.
Loading