fix miss nameing

This commit is contained in:
jusax23 2023-03-25 14:39:29 +01:00
parent f697191a7c
commit a6a59fa3fa
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -427,7 +427,7 @@ export const addItem: Act = {
func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => {
if (!checkSelfTag(data.server)) { if (!checkSelfTag(data.server)) {
if (client.state != STATE.client) return void aws("error", "right"); if (client.state != STATE.client) return void aws("error", "right");
let resp = await client.pass(data.server, "addProduct", data); let resp = await client.pass(data.server, "addItem", data);
aws(resp.state, resp.data); aws(resp.state, resp.data);
return; return;
} }
@ -482,7 +482,7 @@ export const changeItem: Act = {
func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => {
if (!checkSelfTag(data.server)) { if (!checkSelfTag(data.server)) {
if (client.state != STATE.client) return void aws("error", "right"); if (client.state != STATE.client) return void aws("error", "right");
let resp = await client.pass(data.server, "addProduct", data); let resp = await client.pass(data.server, "changeItem", data);
aws(resp.state, resp.data); aws(resp.state, resp.data);
return; return;
} }