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

Function getEntryByMalId

src/background/database.ts:153–159  ·  view source on GitHub ↗
(
  type: 'anime' | 'manga',
  malId: number,
)

Source from the content-addressed store, hash-verified

151}
152
153export async function getEntryByMalId(
154 type: 'anime' | 'manga',
155 malId: number,
156): Promise<undefined | Entry> {
157 const table = type === 'anime' ? db.table('anime') : db.table('manga');
158 return table.get({ malId });
159}
160
161export async function removeEntry(type: 'anime' | 'manga', uid: number | string) {
162 const table = type === 'anime' ? db.table('anime') : db.table('manga');

Callers 1

databaseRequestFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected