REFACTOR: rename props

This commit is contained in:
marcos-silva-rodrigues
2025-01-26 16:44:31 -03:00
parent cf99acc682
commit b896b1a9b8
6 changed files with 25 additions and 25 deletions
+6 -6
View File
@@ -21,8 +21,8 @@ import { resolve } from 'path';
import { Readable } from 'stream';
type Files = {
logoWhite: Express.Multer.File,
logoBlack: Express.Multer.File,
logo: Express.Multer.File,
logoLogin: Express.Multer.File,
}
@Injectable()
@@ -62,12 +62,12 @@ export class ThemeService implements OnModuleInit {
chunk: Buffer.alloc(0)
})
if(theme.logoBlack) {
await this.sendFile(theme.logoBlack, customerThemeRequest$);
if(theme.logo) {
await this.sendFile(theme.logo, customerThemeRequest$);
}
if(theme.logoWhite) {
await this.sendFile(theme.logoWhite, customerThemeRequest$);
if(theme.logoLogin) {
await this.sendFile(theme.logoLogin, customerThemeRequest$);
}
customerThemeRequest$.complete();