Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from Team-Croissant/develop
Browse files Browse the repository at this point in the history
셧다운제 안녕
  • Loading branch information
Coupy authored Dec 31, 2021
2 parents 466dc66 + 9026fdb commit 92b55e2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ app.get("/auth/status", async (req, res) => {
return;
}

const date = new Date();
if (date.getTime() - new Date(results[0].birth).getTime() <= 504576000000) {
if (0 <= date.getHours() && date.getHours() <= 6) {
res.status(200).json(createStatusResponse("Shutdowned"));
return;
}
}

if (!req.session.authorized) {
res.status(200).json(createStatusResponse("Not authorized"));
return;
Expand Down

0 comments on commit 92b55e2

Please sign in to comment.