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

Function updateEntry

src/background/database.ts:10–27  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

8const db = new Dexie('malsync');
9
10async function updateEntry(data) {
11 con.log('update', data);
12 if (data.id && data.state.onList) {
13 addEntry({
14 uid: data.id,
15 type: data.type,
16 title: data.meta.title,
17 malId: data.meta.malId,
18 cacheKey: data.cacheKey,
19 image: data.meta.image,
20 score: data.state.score,
21 status: data.state.status,
22 watchedEp: data.state.episode,
23 totalEp: data.meta.totalEp,
24 url: data.meta.url,
25 });
26 }
27}
28
29export async function initDatabase() {
30 logger.log('Starting');

Callers 1

initDatabaseFunction · 0.85

Calls 1

addEntryFunction · 0.85

Tested by

no test coverage detected