MCPcopy
hub / github.com/immich-app/immich / serialize

Function serialize

server/src/utils/sync.ts:28–34  ·  view source on GitHub ↗
({
  type,
  data,
  ids,
  ackType,
}: SerializeOptions<T, D>)

Source from the content-addressed store, hash-verified

26};
27
28export const serialize = <T extends keyof SyncItem, D extends SyncItem[T]>({
29 type,
30 data,
31 ids,
32 ackType,
33}: SerializeOptions<T, D>) =>
34 mapJsonLine({ type, data, ack: toAck({ type: ackType ?? type, updateId: ids[0], extraId: ids[1] }) });

Callers 1

sendFunction · 0.90

Calls 2

mapJsonLineFunction · 0.85
toAckFunction · 0.85

Tested by

no test coverage detected