refactor: create channel API

This commit is contained in:
Tristan Yang
2023-01-13 21:26:23 +08:00
parent d6847c9968
commit 2a5e378e73
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export const channelApi = createApi({
}
}
}),
createChannel: builder.mutation<number, CreateChannelDTO>({
createChannel: builder.mutation<Channel | number, CreateChannelDTO>({
query: (data) => ({
url: "group",
method: "POST",