Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhducthanhtuan committed Jul 2, 2023
1 parent da23f55 commit 303d2ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/configs/env.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { config } from 'dotenv';

export class EnvConfig {
private static _instance: EnvConfig;

constructor() {
config({ path: '.env' });
}
Expand Down
2 changes: 1 addition & 1 deletion src/configs/firebase.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ firebaseAdmin.initializeApp({
storageBucket: FIREBASE_STORAGE_BUCKET_LINK
});

export default firebaseAdmin;
export { firebaseAdmin };
2 changes: 1 addition & 1 deletion src/modules/file/file.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import firebaseAdmin from 'src/configs/firebase.config';
import { File } from 'multer';
import { Injectable } from '@nestjs/common';
import { STORAGE_FILE_EXPIRE_DAY } from 'src/constants';
import { firebaseAdmin } from 'src/configs/firebase.config';

@Injectable()
export class FileService {
Expand Down

0 comments on commit 303d2ca

Please sign in to comment.