Skip to content

Commit e0283f9

Browse files
committed
make codam-web-greeter compatible with node v12
for out-of-the-box support on Ubuntu 22 LTS
1 parent 528f701 commit e0283f9

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"devDependencies": {
3131
"nody-greeter-types": "^1.1.0",
3232
"ts-loader": "^9.5.0",
33-
"typescript": "^5.2.2",
33+
"typescript": "^4.9.5",
3434
"webpack": "^5.89.0",
3535
"webpack-cli": "^5.1.4"
3636
}

server/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
},
2727
"devDependencies": {
2828
"@types/express": "^4.17.20",
29-
"typescript": "^5.2.2"
29+
"typescript": "^4.9.5"
3030
}
3131
}

server/src/intra.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const filterExamOrEventOnDate = function(items: Exam42[] | Event42[]) {
5151
// Delete events that are over the limit specified in the global variable
5252
const currentDate = new Date();
5353
const maxFetchDate = new Date(currentDate.getTime() + 1000 * 60 * 60 * 24 * FETCH_EVENTS_UPCOMING_DAYS);
54+
// @ts-ignore (This expression is not callable -> each member of union type has signatures, but none of those signatures are compatible with each other)
5455
const filteredItems = items.filter((item: Exam42 | Event42) => {
5556
const eventDate = new Date(item.begin_at);
5657
return eventDate.getTime() <= maxFetchDate.getTime();

0 commit comments

Comments
 (0)