fix(web,server): album share performance (#3698)

This commit is contained in:
Jason Rasmussen
2023-08-15 14:34:02 -04:00
committed by GitHub
parent af1f00dff9
commit 0abbd85134
5 changed files with 47 additions and 40 deletions

View File

@@ -100,7 +100,7 @@
});
const refreshAlbum = async () => {
const { data } = await api.albumApi.getAlbumInfo({ id: album.id, withoutAssets: false });
const { data } = await api.albumApi.getAlbumInfo({ id: album.id, withoutAssets: true });
album = data;
};
@@ -261,9 +261,9 @@
}
};
const handleUpdateDescription = (description: string) => {
const handleUpdateDescription = async (description: string) => {
try {
api.albumApi.updateAlbumInfo({
await api.albumApi.updateAlbumInfo({
id: album.id,
updateAlbumDto: {
description,