Skip to content

Commit

Permalink
feat(CB2-12690): removed any type on date sorting method and station …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
Daniel-Searle committed Jul 8, 2024
1 parent 2448304 commit f9e1c43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/models/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
declare enum StationType {
ATF = "atf",
GVTS = "gvts",
HQ = "hq",
POTF = "potf",
}

interface IS3Config {
endpoint: string;
s3ForcePathStyle: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/services/SendATFReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class SendATFReport {
list.push(act);
}
// Sorting the list by StartTime
const sortDateAsc = (date1: any, date2: any) => {
const sortDateAsc = (date1: IActivitiesList, date2: IActivitiesList) => {
const date = new Date(date1.startTime).toISOString();
const dateToCompare = new Date(date2.startTime).toISOString();
if (date > dateToCompare) {
Expand Down

0 comments on commit f9e1c43

Please sign in to comment.