MCPcopy Index your code
hub / github.com/MALSync/MALSync / removeEntry

Function removeEntry

src/background/database.ts:161–164  ·  view source on GitHub ↗
(type: 'anime' | 'manga', uid: number | string)

Source from the content-addressed store, hash-verified

159}
160
161export async function removeEntry(type: 'anime' | 'manga', uid: number | string) {
162 const table = type === 'anime' ? db.table('anime') : db.table('manga');
163 return table.where('uid').equals(uid).delete();
164}
165
166async function importEntries(type: 'anime' | 'manga', entries: Entry[]) {
167 const table = type === 'anime' ? db.table('anime') : db.table('manga');

Callers 1

initDatabaseFunction · 0.85

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected