Skip to content

Commit 9d25b99

Browse files
authored
default to one million second expiry (#173)
1 parent 3445b0e commit 9d25b99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/routes/bins/create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = (client) => (req, res, next) => {
5050
`bin:${id}`,
5151
JSON.stringify(mock),
5252
"EX",
53-
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS,
53+
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS || "1000000000",
5454
);
5555

5656
res.view = "redirect";

lib/routes/bins/update.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = (client) => (req, res, next) => {
4545
`bin:${compoundId}`,
4646
JSON.stringify(mock),
4747
"EX",
48-
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS,
48+
process.env.MOCKBIN_REDIS_EXPIRE_SECONDS || "1000000000",
4949
);
5050

5151
res.view = "redirect";

0 commit comments

Comments
 (0)