Skip to content

Commit c23799f

Browse files
authored
Update "UpdateStatus" type to server changes (#413)
The "UpdateStatus" was updated in Suwayomi/Suwayomi-Server#657 on the server side
1 parent bde16d0 commit c23799f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/library/UpdateChecker.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ function UpdateChecker({ handleFinishedUpdate }: IUpdateCheckerProps) {
6262
let updateStarted = false;
6363

6464
wsc.onmessage = (e) => {
65-
const { running, statusMap } = JSON.parse(e.data) as IUpdateStatus;
66-
const { COMPLETE = [], RUNNING = [], PENDING = [] } = statusMap;
65+
const { running, mangaStatusMap } = JSON.parse(e.data) as IUpdateStatus;
66+
const { COMPLETE = [], RUNNING = [], PENDING = [] } = mangaStatusMap;
6767

6868
const currentProgress = 100 * (COMPLETE.length / (COMPLETE.length + RUNNING.length + PENDING.length));
6969

src/typings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export interface IQueue {
278278

279279
export interface IUpdateStatus {
280280
running: boolean;
281-
statusMap: {
281+
mangaStatusMap: {
282282
COMPLETE?: IManga[];
283283
RUNNING?: IManga[];
284284
PENDING?: IManga[];

0 commit comments

Comments
 (0)