Skip to content

Commit

Permalink
update d2-api
Browse files Browse the repository at this point in the history
  • Loading branch information
eperedo committed May 16, 2024
1 parent e63b4ef commit 96bf6b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/data/repositories/IssueD2Repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ export class IssueD2Repository implements IssueRepository {
return Future.success({
pagination: {
pageSize: d2Response.pageSize,
// @ts-ignore
pageCount: d2Response.pageCount,
pageCount: d2Response.pageCount || 0,

Check failure on line 85 in src/data/repositories/IssueD2Repository.ts

View workflow job for this annotation

GitHub Actions / Unit tests

Property 'pageCount' does not exist on type 'TrackerEventsResponse'.
page: d2Response.page,
total: d2Response.total || 0,
},
Expand Down
4 changes: 1 addition & 3 deletions src/data/repositories/QualityAnalysisD2Repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export class QualityAnalysisD2Repository implements QualityAnalysisRepository {
pageSize: options.pagination.pageSize,
trackedEntity: options.filters.ids ? options.filters.ids.join(";") : undefined,
attribute: this.buildFilters(options.filters)?.join(",") || undefined,
// @ts-ignore
order: this.buildOrder(options.sorting) || undefined,

Check failure on line 65 in src/data/repositories/QualityAnalysisD2Repository.ts

View workflow job for this annotation

GitHub Actions / Unit tests

Object literal may only specify known properties, and 'order' does not exist in type 'TrackerTrackedEntitiesParams<{ orgUnit: true; trackedEntity: true; attributes: true; enrollments: true; }>'.
totalPages: true,
})
Expand All @@ -82,8 +81,7 @@ export class QualityAnalysisD2Repository implements QualityAnalysisRepository {
return {
pagination: {
pageSize: d2Response.pageSize,
// @ts-ignore
pageCount: d2Response.pageCount,
pageCount: d2Response.pageCount || 0,

Check failure on line 84 in src/data/repositories/QualityAnalysisD2Repository.ts

View workflow job for this annotation

GitHub Actions / Unit tests

Property 'pageCount' does not exist on type 'TrackedEntitiesGetResponse'.
page: d2Response.page,
total: d2Response.total || 0,
},
Expand Down

0 comments on commit 96bf6b1

Please sign in to comment.