Skip to content

Commit

Permalink
Merge pull request #66 from EyeSeeTea/fix/ts-errors
Browse files Browse the repository at this point in the history
Fix TS errors
  • Loading branch information
adrianq authored Dec 10, 2024
2 parents 5d702b5 + 8345d61 commit 657477c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/LoadingPlanHarRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class LoadingPlanHarRepository implements LoadingPlanRepository {
if (location && location.match(/failed/)) {
throw new Error(`Login failed: ${config.data} -> location=${location}`);
}
const cookie = res.headers["set-cookie"]?.[0].split(";")[0] || "";
const cookie = res.headers["set-cookie"]?.[0]?.split(";")[0] || "";
console.debug(`Cookie from server: ${cookie}`);
this.cookie = cookie;
}
Expand Down
2 changes: 1 addition & 1 deletion src/data/enrollments/EventsD2Repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class EventsD2Repository implements EventsRepository {
updatedBefore: params.eventUpdateCutoff,
order: "enrollment,updatedAt",
fields: {
events: true,
event: true,
program: true,
orgUnit: true,
status: true,
Expand Down

0 comments on commit 657477c

Please sign in to comment.