⏸ Added a pause queue method

This commit is contained in:
2022-03-17 07:10:39 -07:00
parent 2cc00aff94
commit b5e29c1f5b
2 changed files with 11 additions and 0 deletions

View File

@@ -104,6 +104,10 @@ export default class ApiService extends Service {
{}
);
break;
case "LS_PAUSE_IMPORT_QUEUE":
console.log("lol")
await this.broker.call("queue.pauseImportQueue", action.data);
break;
}
});
// Add a disconnect listener

View File

@@ -153,6 +153,13 @@ export default class QueueService extends Service {
});
},
},
pauseImportQueue: {
rest: "POST /pauseImportQueue",
params: {},
handler: async (ctx: Context<{}>) => {
return await this.getQueue("process.import").resume();
}
},
unarchiveComicBook: {
rest: "POST /unarchiveComicBook",
params: {},