Update storage.service.ts
This commit is contained in:
parent
7ba3f69a46
commit
7447fe6981
@ -8,7 +8,7 @@ export class StorageService {
|
||||
|
||||
constructor() {
|
||||
const uri = process.env[`STORAGE_URI`];
|
||||
const ttl = process.env[`STORAGE_TTL`] ?? 2592000; // 30 days as default
|
||||
const ttl = parseInt(process.env[`STORAGE_TTL`] ?? 2592000, 10); // 30 days as default
|
||||
if (!uri) {
|
||||
this.logger.warn(
|
||||
`STORAGE_URI is undefined, will use non persistant in memory storage`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user