fix: show/set activity like per user (#4775)

* fix: like per user

* chore: open api

* chore: e2e test for userId filtering
This commit is contained in:
Jason Rasmussen
2023-11-01 11:49:12 -04:00
committed by GitHub
parent cf4ec06750
commit 0130591a0f
10 changed files with 89 additions and 17 deletions

View File

@@ -123,9 +123,10 @@
};
const getFavorite = async () => {
if (album) {
if (album && user) {
try {
const { data } = await api.activityApi.getActivities({
userId: user.id,
assetId: asset.id,
albumId: album.id,
type: ReactionType.Like,