Update storage.service.ts
This commit is contained in:
@ -7,8 +7,8 @@ export class StorageService {
|
||||
storagesMap = new Map<string, Keyv>();
|
||||
|
||||
constructor() {
|
||||
const uri = process.env[`STORAGE_URI`];
|
||||
const ttl = parseInt(process.env[`STORAGE_TTL`] ?? 2592000, 10); // 30 days as default
|
||||
const uri: string = process.env[`STORAGE_URI`];
|
||||
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`,
|
||||
|
Reference in New Issue
Block a user