blob: 6bd248dc048d07e315316e80ac75068edf71c669 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { database } from '../../Database/IDB/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);
};
|