From c639c57f488e924a93a1d2b5228e3b5f86dcaac4 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 14 Feb 2024 22:13:55 +0800 Subject: [PATCH] fix: api model --- packages/api-client/controllers/activity.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api-client/controllers/activity.ts b/packages/api-client/controllers/activity.ts index e4bde9e0..1b7f8320 100644 --- a/packages/api-client/controllers/activity.ts +++ b/packages/api-client/controllers/activity.ts @@ -1,7 +1,7 @@ import type { IRequestAdapter } from '~/interfaces/adapter' import type { IController } from '~/interfaces/controller' import type { IRequestHandler } from '~/interfaces/request' -import type { ActivityPresence } from '~/models/activity' +import type { ActivityPresence, RoomsData } from '~/models/activity' import type { HTTPClient } from '../core' import { autoBind } from '~/utils/auto-bind' @@ -84,6 +84,6 @@ export class ActivityController implements IController { } async getRoomsInfo() { - return this.proxy.rooms.get<{}>() + return this.proxy.rooms.get() } }