@nodeart/firebase-connector
Advanced tools
Comparing version 2.1.19 to 2.1.20
@@ -36,3 +36,3 @@ { | ||
}, | ||
"version": "2.1.19" | ||
"version": "2.1.20" | ||
} |
@@ -118,2 +118,4 @@ import { Http, Response } from '@angular/http'; | ||
let userId = this.guid(); | ||
// add current time | ||
registerForm["registerTime"] = Date.now(); | ||
return Observable.create(observer => { | ||
@@ -496,3 +498,3 @@ this.register(email, password).then(authData => { | ||
addPaymentRequest(data, paymentMethod) { | ||
return firebase.database().ref('token-requests').push({ | ||
return firebase.database().ref('payment-request').push({ | ||
data: data, | ||
@@ -512,3 +514,3 @@ payMethod: paymentMethod | ||
return Observable.create( observer => { | ||
firebase.database().ref('token-response/' + paymentKey).on('value', data => { | ||
firebase.database().ref('payment-response/' + paymentKey).on('value', data => { | ||
if(data.val()){ | ||
@@ -515,0 +517,0 @@ observer.next(data); |
30873
752