mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-15 19:35:31 +00:00
web/state/queue: add nukeEntireQueue()
This commit is contained in:
parent
a8bb64ffb1
commit
3f46395bd2
|
@ -58,4 +58,13 @@ export function removeFromOngoingQueue(id: string) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function nukeEntireQueue() {
|
||||||
|
update(() => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
updateOngoing(() => {
|
||||||
|
return {};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export { queue, ongoingQueue };
|
export { queue, ongoingQueue };
|
||||||
|
|
Loading…
Reference in a new issue