(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap)
| 275 | } |
| 276 | |
| 277 | private async syncAssetsV2(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap) { |
| 278 | const deleteType = SyncEntityType.AssetDeleteV1; |
| 279 | const deletes = this.syncRepository.asset.getDeletes({ ...options, ack: checkpointMap[deleteType] }); |
| 280 | for await (const { id, ...data } of deletes) { |
| 281 | send(response, { type: deleteType, ids: [id], data }); |
| 282 | } |
| 283 | |
| 284 | const upsertType = SyncEntityType.AssetV2; |
| 285 | const upserts = this.syncRepository.asset.getUpserts({ ...options, ack: checkpointMap[upsertType] }); |
| 286 | for await (const { updateId, ...data } of upserts) { |
| 287 | send(response, { type: upsertType, ids: [updateId], data: mapSyncAssetV2(data) }); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | private syncPartnerAssetsV1(): Promise<void> { |
| 292 | throw new BadRequestException( |
no test coverage detected