mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: add missing await
This commit is contained in:
@@ -167,7 +167,7 @@ export class SocketIoClient {
|
||||
url: string,
|
||||
options?: Partial<Omit<IOOutgoingMessage, "url" | "method" | "body">>,
|
||||
): Promise<IOIncomingMessage<T>> {
|
||||
return this.request({
|
||||
return await this.request({
|
||||
method: "get",
|
||||
url,
|
||||
...options,
|
||||
@@ -178,7 +178,7 @@ export class SocketIoClient {
|
||||
url: string,
|
||||
options: Partial<Omit<IOOutgoingMessage, "url" | "method">>,
|
||||
): Promise<IOIncomingMessage<T>> {
|
||||
return this.request({
|
||||
return await this.request({
|
||||
method: "post",
|
||||
url,
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user