Skip to content

Commit

Permalink
Fix: store DEFAULT_BLOCK_TIME in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Dec 5, 2023
1 parent edf7648 commit c736b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ORIGIN_URL=https://example.com

SILENT=false

DEFAULT_BLOCK_TIME=5000
DEFAULT_BLOCK_TIME=5 # In seconds

TZ='Etc/Zulu' # Only taken into account if the system doesn't have one set

Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

dotenv.config();

const BLOCK_TIME = Number(process.env.DEFAULT_BLOCK_TIME) || 5000;
const BLOCK_TIME = Number(process.env.DEFAULT_BLOCK_TIME) * 1000 || 5000;

export const isDevMode = (): boolean => process.env.NODE_ENV !== 'prod';

Expand Down

0 comments on commit c736b43

Please sign in to comment.