blob: 533f383cb19060d96360408d40565509a1b652e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import manga from "$stores/manga";
import { database } from "../../Database/IDB/chapters";
export const pruneAllManga = async () => {
const all = await database.chapters.toArray();
const ids = all.map((m) => m.id);
manga.set("");
await database.chapters.bulkDelete(ids);
};
|