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(server): on_asset_update event sends varying data types #7179

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

michelheusschen
Copy link
Contributor

The websocket on_asset_update event sends AssetResponseDto and string[] as the same event. This doesn't lead to any errors currently, but that could easily happen in the future.

Fixed by adding type safety to sending events and introducing a new on_asset_stack_update to separate the two data types.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c9c6475
Status: ✅  Deploy successful!
Preview URL: https://cf1fd38e.immich.pages.dev
Branch Preview URL: https://fix-server-asset-update-even.immich.pages.dev

View logs

@alextran1502 alextran1502 merged commit 4b46bb4 into main Feb 18, 2024
25 of 26 checks passed
@alextran1502 alextran1502 deleted the fix/server-asset-update-events branch February 18, 2024 22:50
alextran1502 added a commit that referenced this pull request Feb 22, 2024
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.

3 participants