Revert "refactor: server update API method"

This reverts commit 5b3ee6652f.
This commit is contained in:
Tristan Yang
2023-04-06 11:39:04 +08:00
parent 2130b3650e
commit ee60def56d
+3 -3
View File
@@ -196,7 +196,7 @@ export const serverApi = createApi({
"content-type": "image/png"
},
url: `admin/system/organization/logo`,
method: "PUT",
method: "POST",
body: data
}),
async onQueryStarted(data, { dispatch, queryFulfilled }) {
@@ -229,10 +229,10 @@ export const serverApi = createApi({
return `${location.origin}${invite.pathname}${invite.search}${invite.hash}`;
}
}),
updateServer: builder.mutation<void, Partial<Server>>({
updateServer: builder.mutation<void, Server>({
query: (data) => ({
url: "admin/system/organization",
method: "PUT",
method: "POST",
body: data
}),
async onQueryStarted(data, { dispatch, queryFulfilled, getState }) {