(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap)
| 442 | } |
| 443 | |
| 444 | private async syncAlbumsV2(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap) { |
| 445 | const deleteType = SyncEntityType.AlbumDeleteV1; |
| 446 | const deletes = this.syncRepository.album.getDeletes({ ...options, ack: checkpointMap[deleteType] }); |
| 447 | for await (const { id, ...data } of deletes) { |
| 448 | send(response, { type: deleteType, ids: [id], data }); |
| 449 | } |
| 450 | |
| 451 | const upsertType = SyncEntityType.AlbumV2; |
| 452 | const upserts = this.syncRepository.album.getUpserts({ ...options, ack: checkpointMap[upsertType] }); |
| 453 | for await (const { updateId, ...data } of upserts) { |
| 454 | send(response, { type: upsertType, ids: [updateId], data }); |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | private async syncAlbumUsersV1( |
| 459 | options: SyncQueryOptions, |
no test coverage detected