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

Method syncAssetExifsV1

server/src/services/sync.service.ts:356–362  ·  view source on GitHub ↗
(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap)

Source from the content-addressed store, hash-verified

354 }
355
356 private async syncAssetExifsV1(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap) {
357 const upsertType = SyncEntityType.AssetExifV1;
358 const upserts = this.syncRepository.assetExif.getUpserts({ ...options, ack: checkpointMap[upsertType] });
359 for await (const { updateId, ...data } of upserts) {
360 send(response, { type: upsertType, ids: [updateId], data });
361 }
362 }
363
364 private async syncAssetEditsV1(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap) {
365 const deleteType = SyncEntityType.AssetEditDeleteV1;

Callers 1

streamMethod · 0.95

Calls 2

sendFunction · 0.85
getUpsertsMethod · 0.45

Tested by

no test coverage detected