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(notification): use serde_json in flattened structs #3981

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

bodymindarts
Copy link
Member

No description provided.

@bodymindarts bodymindarts force-pushed the async-notification-execution branch from 7dcf0fd to a1ad5bb Compare February 12, 2024 12:36
let data = serde_json::to_string(&raw).unwrap();
let job_data: JobData<SendPushNotificationData> = serde_json::from_str(&data).unwrap();
assert!(job_data.data.is_some());
assert_eq!(job_data.tracing_data.len(), 3);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert_eq!(job_data.tracing_data.len(), 3); asserting 3 because data is also present here.

@bodymindarts bodymindarts merged commit 89b59ad into main Feb 12, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants