blob: a8af17d3cf7cd3820baa56cc370ee699e32324fa (
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);
};
|