-
Notifications
You must be signed in to change notification settings - Fork 4
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
[#174850132] Prevent errors on missing notification #82
Conversation
Codecov Report
@@ Coverage Diff @@
## master #82 +/- ##
==========================================
- Coverage 86.62% 85.10% -1.53%
==========================================
Files 39 41 +2
Lines 1249 1363 +114
Branches 88 114 +26
==========================================
+ Hits 1082 1160 +78
- Misses 166 198 +32
- Partials 1 5 +4
Continue to review full report at Codecov.
|
Affected stories
Generated by 🚫 dangerJS |
ExtractUserDataActivity/handler.ts
Outdated
) | ||
) | ||
); | ||
.map(arrayOfMabeNotifications => | ||
arrayOfMabeNotifications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use array.catOptions
=== filter(isSome) + x.value
https://github.com/gcanti/fp-ts/blob/1.17.4/src/Array.ts#L1312
ExtractUserDataActivity/handler.ts
Outdated
) | ||
) | ||
); | ||
.map(arrayOfMabeNotifications => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.map(arrayOfMabeNotifications => | |
.map(array.catOptions) => |
This PR solves a bug for which, when a user request his/her data to be downloaded, if he/she has at leas one message with no related notification (this case is legal) the request fails.