We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee00134 commit 17079adCopy full SHA for 17079ad
src/index.js
@@ -44,16 +44,18 @@ exports.handler = async (event) => {
44
const ongoingContests = contests.filter(isOngoing).sort(sortByEndTime);
45
const upcomingContests = contests.filter(isUpcoming).sort(sortByStartTime);
46
47
- const contestsJson = JSON.stringify({
48
- timestamp: curTime,
49
- ongoing: ongoingContests,
50
- upcoming: upcomingContests,
+ const resultsJson = JSON.stringify({
+ results: {
+ timestamp: curTime,
+ ongoing: ongoingContests,
51
+ upcoming: upcomingContests,
52
+ }
53
});
54
55
const params = {
56
Bucket: "codercalendar-api",
57
Key: "response.json",
- Body: contestsJson,
58
+ Body: resultsJson,
59
ContentType: "application/json;charset=UTF-8",
60
ACL: 'public-read'
61
};
0 commit comments