File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ const handleCallback = client => {
28
28
29
29
// insert application with respective authentication data
30
30
if ( collRef ) {
31
- const firestoreTimestamp = require ( 'firebase-admin' ) . firestore . Timestamp . fromDate ( new Date ( ) )
31
+ const { Timestamp } = require ( 'firebase-admin' ) . firestore
32
32
firestoreDoc = {
33
33
application_id : application . _id ,
34
34
application_app_id : application . app_id ,
35
35
application_title : application . title ,
36
36
authentication_id : authenticationId ,
37
37
authentication_permissions : JSON . stringify ( authentication . permissions ) ,
38
38
store_id : storeId ,
39
- created_at : firestoreTimestamp ,
40
- updated_at : firestoreTimestamp
39
+ created_at : Timestamp . now ( ) ,
40
+ updated_at : new Timestamp ( 1500000000 ) // Jul 13 2017
41
41
}
42
42
} else {
43
43
values = [
You can’t perform that action at this time.
0 commit comments