mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
handle favorite/rating events for all tables
This commit is contained in:
@@ -37,6 +37,7 @@ export const useCreateFavorite = (args: MutationHookArgs) => {
|
||||
favorite: false,
|
||||
id: variables.query.id,
|
||||
itemType: variables.query.type,
|
||||
serverId: variables.apiClientProps.serverId,
|
||||
});
|
||||
},
|
||||
onMutate: (variables) => {
|
||||
@@ -44,6 +45,7 @@ export const useCreateFavorite = (args: MutationHookArgs) => {
|
||||
favorite: true,
|
||||
id: variables.query.id,
|
||||
itemType: variables.query.type,
|
||||
serverId: variables.apiClientProps.serverId,
|
||||
});
|
||||
|
||||
return null;
|
||||
|
||||
@@ -37,6 +37,7 @@ export const useDeleteFavorite = (args: MutationHookArgs) => {
|
||||
favorite: true,
|
||||
id: variables.query.id,
|
||||
itemType: variables.query.type,
|
||||
serverId: variables.apiClientProps.serverId,
|
||||
});
|
||||
},
|
||||
onMutate: (variables) => {
|
||||
@@ -44,6 +45,7 @@ export const useDeleteFavorite = (args: MutationHookArgs) => {
|
||||
favorite: false,
|
||||
id: variables.query.id,
|
||||
itemType: variables.query.type,
|
||||
serverId: variables.apiClientProps.serverId,
|
||||
});
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user