From 3676bb0699e799c02e6e372d152838bcd53283a2 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sat, 16 Sep 2023 15:36:43 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Added=20more=20data=20to=20the?= =?UTF-8?q?=20return=20value=20of=20getClientInfo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/qbittorrent.service.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/services/qbittorrent.service.ts b/services/qbittorrent.service.ts index add4fb5..f53473d 100644 --- a/services/qbittorrent.service.ts +++ b/services/qbittorrent.service.ts @@ -37,8 +37,14 @@ export default class QBittorrentService extends Service { getClientInfo: { rest: "GET /getClientInfo", handler: async (ctx: Context<{}>) => { - return await this.meta.app.buildInfo(); - }, + console.log(this.meta.app); + return { + buildInfo: await this.meta.app.buildInfo(), + version: await this.meta.app.version(), + webAPIVersion: await this.meta.app.webapiVersion(), + } + } + }, }, methods: {},