(options: SyncQueryOptions, response: Writable, checkpointMap: CheckpointMap)
| 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; |
no test coverage detected