Solves avoid saving base64 images in the db on createBoard() #428
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors how base64 images in board tiles are processed during board creation and update, focusing on simplifying function signatures and improving error handling. The changes ensure that the
processBase64Imagesutility no longer requires aboardId, and related logging has been removed for cleaner code. Additionally, the board creation response now includes anisLocalUpdateNeededflag to signal if local updates are required due to image processing.Board creation and update improvements:
createBoardfunction is now asynchronous and processes base64 images in tiles before saving the board. It sets anisLocalUpdateNeededflag if any images were processed and includes this flag in the response.updateBoardfunction now callsprocessBase64Imageswithout passing aboardId, simplifying the update logic.Image processing utility refactor:
processBase64Imagesfunction inimageProcessor.jsno longer requires or uses aboardIdparameter, and its documentation has been updated accordingly.logProcessingStatsfunction has been eliminated for a cleaner codebase.Closes #417