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

Function send

server/src/services/sync.service.ts:45–47  ·  view source on GitHub ↗
(response: Writable, item: SerializeOptions<T, D>)

Source from the content-addressed store, hash-verified

43 createId === checkpoint?.updateId ? checkpoint?.extraId : undefined;
44
45const send = <T extends keyof SyncItem, D extends SyncItem[T]>(response: Writable, item: SerializeOptions<T, D>) => {
46 response.write(serialize(item));
47};
48
49const sendEntityBackfillCompleteAck = (response: Writable, ackType: SyncEntityType, id: string) => {
50 send(response, { type: SyncEntityType.SyncAckV1, data: {}, ackType, ids: [id, COMPLETE_ID] });

Callers 15

streamMethod · 0.85
syncAuthUsersV1Method · 0.85
syncUsersV1Method · 0.85
syncPartnersV1Method · 0.85
syncAssetsV2Method · 0.85
syncPartnerAssetsV2Method · 0.85
syncAssetExifsV1Method · 0.85
syncAssetEditsV1Method · 0.85
syncAlbumsV1Method · 0.85
syncAlbumsV2Method · 0.85

Calls 2

serializeFunction · 0.90
writeMethod · 0.45

Tested by

no test coverage detected