refactor api controller to internalize server fetch

This commit is contained in:
jeffvli
2025-11-02 21:56:35 -08:00
parent 8dbaec3943
commit c7a473d864
79 changed files with 904 additions and 399 deletions
@@ -142,19 +142,19 @@ export const SwiperGridCarousel = ({
const { id, isFavorite, itemType, serverId } = options;
if (isFavorite) {
deleteFavoriteMutation.mutate({
apiClientProps: { serverId },
query: {
id,
type: itemType,
},
serverId,
});
} else {
createFavoriteMutation.mutate({
apiClientProps: { serverId },
query: {
id,
type: itemType,
},
serverId,
});
}
},