(entry: Entry)
| 138 | } |
| 139 | |
| 140 | export async function addEntry(entry: Entry) { |
| 141 | const table = entry.type === 'anime' ? db.table('anime') : db.table('manga'); |
| 142 | return table.put(entry); |
| 143 | } |
| 144 | |
| 145 | export async function getEntry( |
| 146 | type: 'anime' | 'manga', |