Skip to content

Commit

Permalink
fix: updated firestore dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Drohsen committed Aug 29, 2024
1 parent 307d2b0 commit fb3db91
Show file tree
Hide file tree
Showing 3 changed files with 970 additions and 652 deletions.
4 changes: 2 additions & 2 deletions firestore-import.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Imports
const { initializeApp, restore } = require('firestore-export-import')
const { initializeFirebaseApp, restore } = require('firestore-export-import')
const firebaseConfig = require('./src/config/firebase.js')
const serviceAccount = require('./service-account.json')
const fs = require('fs')
Expand All @@ -22,7 +22,7 @@ const tempFileName = resolve('./data-temp.json');
async function jsonToFirestore () {
try {
console.log('Initializing Firebase')
initializeApp(serviceAccount)
initializeFirebaseApp(serviceAccount)
console.log('Firebase Initialized')

await restore(tempFileName, {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"@heroicons/vue": "^1.0.0",
"@vueuse/core": "^10.11.0",
"core-js": "^3.38.0",
"firebase": "^9.1.0",
"firestore-export-import": "^0.17.0",
"firebase": "^10.13.0",
"firestore-export-import": "^1.3.0",
"mapbox-gl": "^2.4.0",
"pinia": "^2.0.0",
"tailwindcss": "^2.2.0",
Expand Down
Loading

0 comments on commit fb3db91

Please sign in to comment.