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