File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- import fs from 'node:fs/promises' ;
2- import cuid2 from '@paralleldrive/cuid2' ;
3- import { Service } from 'typedi' ;
4- import { lookup } from 'mime-types' ;
5- import { getDownloadURL } from 'firebase-admin/storage' ;
1+ import { FIREBASE_PROJECT_ID } from '@/config' ;
62import { firebase } from '@/libs/firebase' ;
73import { logger } from '@/utils/logger' ;
4+ import cuid2 from '@paralleldrive/cuid2' ;
5+ import { getDownloadURL } from 'firebase-admin/storage' ;
6+ import { lookup } from 'mime-types' ;
7+ import fs from 'node:fs/promises' ;
8+ import { Service } from 'typedi' ;
89
9- const storageUrl =
10- 'https://firebasestorage.googleapis.com/v0/b/coffeenearyou-37ef4.appspot.com/o' ;
10+ const storageUrl = `https://firebasestorage.googleapis.com/v0/b/${ FIREBASE_PROJECT_ID } .appspot.com/o` ;
1111
1212@Service ( )
1313export class FirebaseService {
You can’t perform that action at this time.
0 commit comments