File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616 * limitations under the License.
1717 */
1818
19- import * as admin from 'firebase-admin'
19+ import { initializeApp , credential , firestore } from 'firebase-admin'
2020import { DocumentSnapshot } from 'firebase-functions/lib/v1/providers/firestore'
2121import { CLIConfig , parseConfig } from './config'
2222import * as logs from '../logs'
@@ -29,12 +29,12 @@ const run = async () => {
2929 const config : CLIConfig = await parseConfig ( )
3030
3131 // Initialize Firebase using the Google Credentials in the GOOGLE_APPLICATION_CREDENTIALS environment variable.
32- admin . initializeApp ( {
33- credential : admin . credential . applicationDefault ( ) ,
32+ initializeApp ( {
33+ credential : credential . applicationDefault ( ) ,
3434 databaseURL : `https://${ config . projectId } .firebaseio.com` ,
3535 } )
3636
37- const database = admin . firestore ( )
37+ const database = firestore ( )
3838
3939 // Initialize Meilisearch index.
4040 const index = initMeilisearchIndex ( config . meilisearch )
You can’t perform that action at this time.
0 commit comments