Skip to content

Commit 4e4757e

Browse files
committed
Number Check..
1 parent 60208f4 commit 4e4757e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cohort/cohort.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ export class CohortService {
11031103
// Pass fieldId to getSearchFieldValueData
11041104
let filledValues = await this.fieldsService.getSearchFieldValueData(
11051105
0,
1106-
"0",
1106+
0,
11071107
{
11081108
fieldId: fieldId,
11091109
value: value

src/fields/fields.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ export class FieldsService {
970970

971971
async getSearchFieldValueData(
972972
offset: number,
973-
limit: string,
973+
limit: number,
974974
searchData: any
975975
) {
976976

@@ -990,7 +990,7 @@ export class FieldsService {
990990
}
991991

992992
if (limit !== undefined) {
993-
queryOptions.take = parseInt(limit);
993+
queryOptions.take = (limit);
994994
}
995995
try {
996996
const [results, totalCount] =

0 commit comments

Comments
 (0)