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: creators sql #38

Merged
merged 3 commits into from
Jan 10, 2024
Merged

fix: creators sql #38

merged 3 commits into from
Jan 10, 2024

Conversation

RequescoS
Copy link
Contributor

No description provided.

Comment on lines 326 to 327
.map_err(|e| DbErr::Custom(e.to_string()))
.unwrap_or(serde_json::Value::Null),
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need to map and then unwrap or, we should do either one or another. If metadata is an invalid json - we either error (and map_err) or just return Null. Not sure, what the spec requires of us.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I took away these changes, because they have already been implemented in your PR.

@StanChe StanChe merged commit 344c574 into main Jan 10, 2024
2 checks passed
@StanChe StanChe deleted the fix/creators-sql branch January 10, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants