Skip to content

Commit c25c19d

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

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

routes/api.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +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)
50-
const bossEnd = Date.parse(end)
49+
const bossEnd = Date.parse('16 Aug 2018 00:00:00 GMT+05:30')
5150

5251
if (bossEnd < Date.now()) {
5352
res.send("BOSS is now over!")

routes/root.js

+7
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ route.get('/claims/:id', auth.adminOnly, (req, res) => {
183183
});
184184

185185
route.post('/claims/add', auth.ensureLoggedInGithub, (req, res) => {
186+
187+
const bossEnd = Date.parse('16 Aug 2018 00:00:00 GMT+05:30')
188+
189+
if (bossEnd < Date.now()) {
190+
res.send("BOSS is now over!")
191+
}
192+
186193
du.createClaim(
187194
req.user.usergithub.username, // github username already valid
188195
req.body.issue_url,

0 commit comments

Comments
 (0)