fix pass name
This commit is contained in:
parent
dcfa6d5df5
commit
ea501d3861
1 changed files with 3 additions and 3 deletions
|
@ -650,7 +650,7 @@ export const setVisibility: Act = {
|
||||||
func: async (client, data, aws) => {
|
func: async (client, data, aws) => {
|
||||||
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, "roomSettings", data);
|
let resp = await client.pass(data.server, "setVisibility", data);
|
||||||
aws(resp.state, resp.data);
|
aws(resp.state, resp.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -675,7 +675,7 @@ export const setRoomRight: Act = {
|
||||||
func: async (client, data, aws) => {
|
func: async (client, data, aws) => {
|
||||||
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, "roomSettings", data);
|
let resp = await client.pass(data.server, "setRoomRight", data);
|
||||||
aws(resp.state, resp.data);
|
aws(resp.state, resp.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -702,7 +702,7 @@ export const changeRoomMeta: 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, "roomMeta", data);
|
let resp = await client.pass(data.server, "changeRoomMeta", data);
|
||||||
aws(resp.state, resp.data);
|
aws(resp.state, resp.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue