From a6a59fa3faa47cd6cca9fabd65c6dc05bc532fdf Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sat, 25 Mar 2023 14:39:29 +0100 Subject: [PATCH] fix miss nameing --- src/api/acts/roomContent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/acts/roomContent.ts b/src/api/acts/roomContent.ts index 50558a8..5ccd59e 100644 --- a/src/api/acts/roomContent.ts +++ b/src/api/acts/roomContent.ts @@ -427,7 +427,7 @@ export const addItem: Act = { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { if (!checkSelfTag(data.server)) { 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); return; } @@ -482,7 +482,7 @@ export const changeItem: Act = { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { if (!checkSelfTag(data.server)) { 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); return; }