From e0011ae7ca5ec69f7410c0ba53e8e689ea3b536d Mon Sep 17 00:00:00 2001 From: jusax23 Date: Fri, 24 Mar 2023 21:19:46 +0100 Subject: [PATCH] name fix --- src/api/acts/roomContent.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/acts/roomContent.ts b/src/api/acts/roomContent.ts index f9e14b9..474bd28 100644 --- a/src/api/acts/roomContent.ts +++ b/src/api/acts/roomContent.ts @@ -41,7 +41,7 @@ export const getCategories: Act = { } }; -export const addCategories: Act = { +export const addCategory: Act = { state: STATE.client | STATE.remote, right: 0, data: { @@ -54,7 +54,7 @@ export const addCategories: 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, "getCategories", data); + let resp = await client.pass(data.server, "addCategory", data); aws(resp.state, resp.data); return; } @@ -229,3 +229,4 @@ export const getProducts: Act = { aws("ok", out.filter(d => d != null)); } }; +