Skip to content

Commit 480ca73

Browse files
Merge pull request #253 from PurdueRCAC/u/jin456/live_status
Fix outage widget: sort order and maintenance type
2 parents 84d2fd8 + a2069ed commit 480ca73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/assets/js/outage-widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// Where "view all" links go:
2727
newsPage: "https://www.rcac.purdue.edu/news/outages-and-maintenance",
2828
// News type whose alias matches this pattern is treated as outage news:
29-
typeAliasPattern: /outage/i,
29+
typeAliasPattern: /outages-and-maintenance/i,
3030
homepageOnly: true, // require #outage-widget-anchor on the page
3131
upcomingWindowDays: 14, // how far ahead to surface scheduled work
3232
staleActiveDays: 7, // open-ended items older than this are ignored
@@ -131,7 +131,7 @@
131131
return resolveOutageTypeId()
132132
.then(function (typeId) {
133133
var url = CONFIG.apiBase + "/news?type=" + typeId +
134-
"&limit=25&order=datetimecreated&order_dir=desc";
134+
"&limit=25&order=datetimenews&order_dir=desc";
135135
return fetchJSON(url);
136136
})
137137
.then(function (json) {

0 commit comments

Comments
 (0)