From cdb15a17e47f924441144112b25b4b84438b50d5 Mon Sep 17 00:00:00 2001 From: JannikStreek Date: Thu, 26 May 2022 21:00:55 +0200 Subject: [PATCH] Update storage.service.ts --- src/storage/storage.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/storage.service.ts b/src/storage/storage.service.ts index 77e3f1d..3440bff 100644 --- a/src/storage/storage.service.ts +++ b/src/storage/storage.service.ts @@ -8,7 +8,7 @@ export class StorageService { constructor() { const uri: string = process.env[`STORAGE_URI`]; - const ttl: string = process.env[`STORAGE_TTL`] ?? '2592000'; // 30 days as default + const ttl: number = 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`,