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 => {
2222 const { application, authentication } = reqBody
2323
2424 // 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 ) {
3227 Object . assign ( firestoreDoc , {
3328 application_id : application . _id ,
3429 application_app_id : application . app_id ,
@@ -121,6 +116,7 @@ const handleCallback = client => {
121116 } )
122117 } else if ( firestoreDoc ) {
123118 // run Firestore collection set
119+ firestoreDoc . authentication_id = authenticationId
124120 collRef
125121 . doc ( authenticationId )
126122 . set ( firestoreDoc , { merge : true } )
You can’t perform that action at this time.
0 commit comments