Skip to content

Commit f1d9d12

Browse files
VibhorCodecianGuptaVibhorCodecianGupta
VibhorCodecianGupta
authored and
VibhorCodecianGupta
committed
IST
1 parent a5014db commit f1d9d12

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

routes/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ route.get('/claims/:id/update', auth.adminOnly, (req, res) => {
4646

4747
route.post('/claims/add', auth.ensureLoggedInGithub, (req, res) => {
4848

49-
const end = new Date(2018,7,16,0,0,0,0)
49+
const end = new Date(2018,7,16,5,30,0,0)
5050
const bossEnd = Date.parse(end)
5151

5252
if (bossEnd < Date.now()) {

routes/root.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ route.get('/claims/:id', auth.adminOnly, (req, res) => {
183183
});
184184

185185
route.post('/claims/add', auth.ensureLoggedInGithub, (req, res) => {
186+
187+
const end = new Date(2018,7,16,5,30,0,0)
188+
const bossEnd = Date.parse(end)
189+
190+
if (bossEnd < Date.now()) {
191+
res.send("BOSS is now over!")
192+
}
193+
186194
du.createClaim(
187195
req.user.usergithub.username, // github username already valid
188196
req.body.issue_url,

0 commit comments

Comments
 (0)