fix: favorite msg id

This commit is contained in:
Tristan Yang
2022-08-08 08:57:08 +08:00
parent 9f6af20924
commit 3e58da22af
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ export const messageApi = createApi({
}
}
}),
removeFavorite: builder.query<void, number>({
removeFavorite: builder.query<void, string>({
query: (id) => ({
url: `/favorite/${id}`,
method: "DELETE"