Skip to content

Commit

Permalink
Merge pull request #13 from Morning-Train/feature/nighttime-shutdown
Browse files Browse the repository at this point in the history
Feature/nighttime shutdown
  • Loading branch information
sunenilausen authored Oct 3, 2021
2 parents cf65635 + e682513 commit 43b78a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Support/Services/Shutdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getEndsAt()
public function getFromInSeconds()
{
/// Default -> 21:30
return config('auth.shutdown.from', 1290) * 60;
return config('auth.shutdown.from', 1380) * 60;
}

public function getToInSeconds()
Expand Down Expand Up @@ -137,4 +137,4 @@ public function broadcastEnd()
event(new ShutdownEnded());
}

}
}
4 changes: 2 additions & 2 deletions config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
*/

'shutdown' => [
'to' => env('SHUTDOWN_TO', 390), // 21:30
'from' => env('SHUTDOWN_FROM', 1290), // 6:30
'to' => env('SHUTDOWN_TO', 390), // 6:30
'from' => env('SHUTDOWN_FROM', 1380), // 23:00
'permissions' => [
'api.forum.*',
],
Expand Down

0 comments on commit 43b78a4

Please sign in to comment.