fix: add paging progress log

This commit is contained in:
Karol Sójko 2023-09-25 08:51:33 +02:00
parent 1d73e4f072
commit 8cb33dc906
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -84,6 +84,8 @@ export class TransitionItemsFromPrimaryToSecondaryDatabaseForUser implements Use
}
const initialPage = this.pagingProgress.get(userUuid.value) as number
this.logger.info(`[${userUuid.value}] Migrating from page ${initialPage}`)
const totalItemsCountForUser = await this.primaryItemRepository.countAll({ userUuid: userUuid.value })
const totalPages = Math.ceil(totalItemsCountForUser / this.pageSize)
const itemsToSkipInIntegrityCheck = []