@@ -29,7 +29,7 @@ const handleCallback = client => {
2929 }
3030 : null
3131 if ( collRef && application ) {
32- Object . assign ( application , {
32+ Object . assign ( firestoreDoc , {
3333 application_id : application . _id ,
3434 application_app_id : application . app_id ,
3535 application_title : application . title
@@ -44,7 +44,7 @@ const handleCallback = client => {
4444 // insert application with respective authentication data
4545 if ( collRef ) {
4646 const { Timestamp } = require ( 'firebase-admin' ) . firestore
47- Object . assign ( application , {
47+ Object . assign ( firestoreDoc , {
4848 authentication_permissions : JSON . stringify ( authentication . permissions ) ,
4949 created_at : Timestamp . now ( ) ,
5050 updated_at : new Timestamp ( 1500000000 , 0 ) // Jul 13 2017
@@ -75,7 +75,7 @@ const handleCallback = client => {
7575 // authentication flux callback
7676 // should update access token for current authentication
7777 if ( collRef ) {
78- Object . assign ( application , {
78+ Object . assign ( firestoreDoc , {
7979 access_token : reqBody . access_token ,
8080 expires : reqBody . expires ,
8181 updated_at : require ( 'firebase-admin' ) . firestore . Timestamp . now ( )
0 commit comments