MCPcopy
hub / github.com/streetwriters/notesnook / sendMigrationProgressEvent

Function sendMigrationProgressEvent

packages/core/src/common.ts:60–71  ·  view source on GitHub ↗
(
  eventManager: EventManager,
  collection: string,
  total: number,
  current?: number
)

Source from the content-addressed store, hash-verified

58}
59
60export function sendMigrationProgressEvent(
61 eventManager: EventManager,
62 collection: string,
63 total: number,
64 current?: number
65) {
66 eventManager.publish(EVENTS.migrationProgress, {
67 collection,
68 total,
69 current: current === undefined ? total : current
70 });
71}
72
73export const CLIENT_ID = "notesnook";
74

Callers 2

migrateMethod · 0.85
migrateItemsMethod · 0.85

Calls 1

publishMethod · 0.45

Tested by

no test coverage detected