File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,8 @@ const handleCallback = client => {
22
22
const { application, authentication } = reqBody
23
23
24
24
// preset Firestore document common values
25
- const firestoreDoc = collRef
26
- ? {
27
- store_id : storeId ,
28
- authentication_id : authenticationId
29
- }
30
- : null
31
- if ( collRef && application ) {
25
+ const firestoreDoc = collRef ? { store_id : storeId } : null
26
+ if ( firestoreDoc && application ) {
32
27
Object . assign ( firestoreDoc , {
33
28
application_id : application . _id ,
34
29
application_app_id : application . app_id ,
@@ -121,6 +116,7 @@ const handleCallback = client => {
121
116
} )
122
117
} else if ( firestoreDoc ) {
123
118
// run Firestore collection set
119
+ firestoreDoc . authentication_id = authenticationId
124
120
collRef
125
121
. doc ( authenticationId )
126
122
. set ( firestoreDoc , { merge : true } )
You can’t perform that action at this time.
0 commit comments