0201
Some checks failed
test / Run tests (push) Failing after 15s
build / Build (push) Failing after 22s
Some checks failed
test / Run tests (push) Failing after 15s
build / Build (push) Failing after 22s
This commit is contained in:
@ -2,7 +2,8 @@ import { Message, MessageConnect } from "./server";
|
||||
|
||||
export async function sendMessage(msg: Message, action: string, data?: any): Promise<any> {
|
||||
const res = await msg.sendMessage({ action, data });
|
||||
if (res.code) {
|
||||
console.log(action, data, res);
|
||||
if (res && res.code) {
|
||||
console.error(res);
|
||||
return Promise.reject(res.message);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user