Skip to content

Commit

Permalink
default to one million second expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Jun 3, 2024
1 parent a9da020 commit 145dae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/routes/bins/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = (client) => (req, res, next) => {
`bin:${id}`,
JSON.stringify(mock),
"EX",
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS,
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS || "1000000000",
);

res.view = "redirect";
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/bins/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = (client) => (req, res, next) => {
`bin:${compoundId}`,
JSON.stringify(mock),
"EX",
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS,
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS || "1000000000",
);

res.view = "redirect";
Expand Down

0 comments on commit 145dae9

Please sign in to comment.