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