Update "UpdateStatus" type to server changes (#413)

The "UpdateStatus" was updated in https://github.com/Suwayomi/Tachidesk-Server/pull/657 on the server side
This commit is contained in:
schroda
2023-08-28 23:47:40 +02:00
committed by GitHub
parent bde16d0411
commit c23799f0e0
2 changed files with 3 additions and 3 deletions

View File

@@ -62,8 +62,8 @@ function UpdateChecker({ handleFinishedUpdate }: IUpdateCheckerProps) {
let updateStarted = false;
wsc.onmessage = (e) => {
const { running, statusMap } = JSON.parse(e.data) as IUpdateStatus;
const { COMPLETE = [], RUNNING = [], PENDING = [] } = statusMap;
const { running, mangaStatusMap } = JSON.parse(e.data) as IUpdateStatus;
const { COMPLETE = [], RUNNING = [], PENDING = [] } = mangaStatusMap;
const currentProgress = 100 * (COMPLETE.length / (COMPLETE.length + RUNNING.length + PENDING.length));

View File

@@ -278,7 +278,7 @@ export interface IQueue {
export interface IUpdateStatus {
running: boolean;
statusMap: {
mangaStatusMap: {
COMPLETE?: IManga[];
RUNNING?: IManga[];
PENDING?: IManga[];