MCPcopy Create free account
hub / github.com/MALSync/MALSync / getEntry

Function getEntry

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

Source from the content-addressed store, hash-verified

143}
144
145export async function getEntry(
146 type: 'anime' | 'manga',
147 uid: number | string,
148): Promise<undefined | Entry> {
149 const table = type === 'anime' ? db.table('anime') : db.table('manga');
150 return table.get(uid);
151}
152
153export async function getEntryByMalId(
154 type: 'anime' | 'manga',

Callers 1

databaseRequestFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected