Update storage.service.ts

This commit is contained in:
JannikStreek 2022-05-26 20:56:00 +02:00 committed by GitHub
parent 7ba3f69a46
commit 7447fe6981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ export class StorageService {
constructor() { constructor() {
const uri = process.env[`STORAGE_URI`]; 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) { if (!uri) {
this.logger.warn( this.logger.warn(
`STORAGE_URI is undefined, will use non persistant in memory storage`, `STORAGE_URI is undefined, will use non persistant in memory storage`,