Spaces:
Runtime error
Runtime error
| import { Injectable } from '@nestjs/common'; | |
| import { WhatsappConfigService } from '@waha/config.service'; | |
| () | |
| export class MediaLocalStorageConfig { | |
| public filesUri = '/api/files'; | |
| constructor(private config: WhatsappConfigService) {} | |
| get filesURL(): string { | |
| return `${this.config.baseUrl}${this.filesUri}/`; | |
| } | |
| get filesFolder(): string { | |
| return this.config.get('WHATSAPP_FILES_FOLDER', '/tmp/whatsapp-files'); | |
| } | |
| get filesLifetime(): number { | |
| return parseInt(this.config.get('WHATSAPP_FILES_LIFETIME', '180')); | |
| } | |
| } | |