import { Injectable } from '@nestjs/common' ; import { AzureStorageService } from './azure-storage.service' ; todo @ Injectable ( ) export class AzureMulterStorageService { constructor ( private readonly azureStorage ) { } async _handleFile ( _req , file , cb ) { const storageUrl = await this . azureStorage . upload ( file ) ; file . storageUrl = storageUrl ; cb ( null , { file , } ) ; } _removeFile ( _req , file , cb ) { delete file . buffer ; cb ( null ) ; } }