-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: Continue importing from file if single emoji import fails #14461
Conversation
このPRによるapi.jsonの差分 差分はこちら |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #14461 +/- ##
===========================================
- Coverage 39.63% 39.56% -0.08%
===========================================
Files 1542 1542
Lines 192690 192697 +7
Branches 3562 3533 -29
===========================================
- Hits 76376 76234 -142
- Misses 115717 115866 +149
Partials 597 597 ☔ View full report in Codecov by Sentry. |
packages/backend/src/queue/processors/ImportCustomEmojisProcessorService.ts
Outdated
Show resolved
Hide resolved
packages/backend/src/queue/processors/ImportCustomEmojisProcessorService.ts
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
i have done so |
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.
LGTM, thank you
conflict resolved |
🙏🏻 |
…ey-dev#14461) * Fix: Continue importing from file if single emoji import fails * Fix indentation --------- Co-authored-by: かっこかり <[email protected]> Co-authored-by: syuilo <[email protected]>
What
Add a try/catch block to the DriveService.addFile call to allow other emojis to be processed in the case of a missing one.
Why
There are potentially still good emojis in a file after one bad one, so interrupting the import process is bad behavior.
Additional info (optional)
Checklist
Fixes #14460