web/state/queue: add nukeEntireQueue()

This commit is contained in:
wukko 2024-12-18 17:10:08 +06:00
parent a8bb64ffb1
commit 3f46395bd2
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -58,4 +58,13 @@ export function removeFromOngoingQueue(id: string) {
}); });
} }
export function nukeEntireQueue() {
update(() => {
return {};
});
updateOngoing(() => {
return {};
});
}
export { queue, ongoingQueue }; export { queue, ongoingQueue };