From 32d02f522436ec61752af3a8be438bece2ee20e1 Mon Sep 17 00:00:00 2001 From: 16-karan <141734327+16-karan@users.noreply.github.com> Date: Wed, 24 Jan 2024 21:14:08 +0530 Subject: [PATCH] fix: type number (#464) Signed-off-by: karan Signed-off-by: KulkarniShashank --- apps/issuance/src/issuance.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/issuance/src/issuance.service.ts b/apps/issuance/src/issuance.service.ts index 6063a8c89..7ff9982eb 100644 --- a/apps/issuance/src/issuance.service.ts +++ b/apps/issuance/src/issuance.service.ts @@ -690,7 +690,7 @@ export class IssuanceService { totalItems: fileData.fileCount, hasNextPage: getAllfileDetails.pageSize * getAllfileDetails.pageNumber < fileData.fileCount, hasPreviousPage: 1 < getAllfileDetails.pageNumber, - nextPage: getAllfileDetails.pageNumber + 1, + nextPage: Number(getAllfileDetails.pageNumber) + 1, previousPage: getAllfileDetails.pageNumber - 1, lastPage: Math.ceil(fileData.fileCount / getAllfileDetails.pageSize), data: fileData.fileDataList @@ -719,7 +719,7 @@ export class IssuanceService { totalItems: fileDetails.fileCount, hasNextPage: getAllfileDetails.pageSize * getAllfileDetails.pageNumber < fileDetails.fileCount, hasPreviousPage: 1 < getAllfileDetails.pageNumber, - nextPage: getAllfileDetails.pageNumber + 1, + nextPage: Number(getAllfileDetails.pageNumber) + 1, previousPage: getAllfileDetails.pageNumber - 1, lastPage: Math.ceil(fileDetails.fileCount / getAllfileDetails.pageSize), data: fileDetails.fileList