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: replaceAsset returns the assetid #18

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Conversation

stumpigit
Copy link
Contributor

Currently replaced images are not added to the album because the AssetId is wrong.

The Immich Replace-Asset API call does not return the AssetId but copiedPhoto.id (https://github.com/immich-app/immich/blob/aa04ded311985a6f8176217e47a7af89b7ea425d/server/src/services/asset-media.service.ts#L212), which doesn't make much sense from my point of view. But since we already know the AssetId, the AssetId is simply returned again.

@bmachek
Copy link
Owner

bmachek commented Aug 30, 2024

That looks very good. I just went more or less nuts, because uploaded assets didn't show up in the Published Collection/Album. This was due to the fact, that the added assets were trashed. (I created an issue at the Immich repo) Thanks to your pull request, I now know why. :-)

Many thanks :-)

@bmachek bmachek merged commit 44891a7 into bmachek:main Aug 30, 2024
@stumpigit
Copy link
Contributor Author

Oh, great, I'm glad I could help you.

Speaking of PR in Immich: it would be good if your great plugin in Immich was mentioned in the community projects. Would love it if you could do a PR there. Your plugin really has a great status already!!!

@bmachek
Copy link
Owner

bmachek commented Aug 30, 2024

Thanks for the hint. I just sent a pull request :-)

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