Function
removeEntry
(type: 'anime' | 'manga', uid: number | string)
Source from the content-addressed store, hash-verified
| 159 | } |
| 160 | |
| 161 | export 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 | |
| 166 | async function importEntries(type: 'anime' | 'manga', entries: Entry[]) { |
| 167 | const table = type === 'anime' ? db.table('anime') : db.table('manga'); |
Tested by
no test coverage detected