@@ -4,12 +4,12 @@ import { initializeApp } from 'https://www.gstatic.com/firebasejs/12.6.0/firebas
44import { getFirestore , collection , addDoc , getDocs } from 'https://www.gstatic.com/firebasejs/12.6.0/firebase-firestore.js' ;
55
66const firebaseConfig = {
7- apiKey : " AIzaSyBzxNleGg-uarKjHON_axWaNJ0EltofVgo" ,
8- authDomain : " engagement-project-1597c.firebaseapp.com" ,
9- projectId : " engagement-project-1597c" ,
10- storageBucket : " engagement-project-1597c.firebasestorage.app" ,
11- messagingSenderId : " 691010878556" ,
12- appId : " 1:691010878556:web:555652f47ffd61e570ba99"
7+ apiKey : ' AIzaSyBzxNleGg-uarKjHON_axWaNJ0EltofVgo' ,
8+ authDomain : ' engagement-project-1597c.firebaseapp.com' ,
9+ projectId : ' engagement-project-1597c' ,
10+ storageBucket : ' engagement-project-1597c.firebasestorage.app' ,
11+ messagingSenderId : ' 691010878556' ,
12+ appId : ' 1:691010878556:web:555652f47ffd61e570ba99' ,
1313} ;
1414
1515// Initialize Firebase
@@ -44,11 +44,11 @@ const Backend = {
4444
4545 // Save to Firestore
4646 try {
47- const coll = collection ( db , 'feedbacks' ) ;
48- const docRef = await addDoc ( coll , record ) ;
49- console . log ( " Document written with ID: " , docRef . id ) ;
47+ const coll = collection ( db , 'feedbacks' ) ;
48+ const docRef = await addDoc ( coll , record ) ;
49+ console . log ( ' Document written with ID: ' , docRef . id ) ;
5050 } catch ( e ) {
51- console . error ( " Error adding document: " , e ) ;
51+ console . error ( ' Error adding document: ' , e ) ;
5252 }
5353
5454 Backend . feedback . push ( record ) ;
@@ -70,7 +70,7 @@ const Backend = {
7070 const querySnapshot = await getDocs ( coll ) ;
7171 const stored = [ ] ;
7272 querySnapshot . forEach ( ( doc ) => {
73- stored . push ( doc . data ( ) ) ;
73+ stored . push ( doc . data ( ) ) ;
7474 } ) ;
7575 Backend . feedback = stored ;
7676 return stored ;
0 commit comments