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

Method syncAuthUsersV1

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

Source from the content-addressed store, hash-verified

235 }
236
237 private async syncAuthUsersV1(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap) {
238 const upsertType = SyncEntityType.AuthUserV1;
239 const upserts = this.syncRepository.authUser.getUpserts({ ...options, ack: checkpointMap[upsertType] });
240 for await (const { updateId, profileImagePath, ...data } of upserts) {
241 send(response, { type: upsertType, ids: [updateId], data: { ...data, hasProfileImage: !!profileImagePath } });
242 }
243 }
244
245 private async syncUsersV1(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap) {
246 const deleteType = SyncEntityType.UserDeleteV1;

Callers 1

streamMethod · 0.95

Calls 2

sendFunction · 0.85
getUpsertsMethod · 0.45

Tested by

no test coverage detected