Fix bug of detecting payment
This commit is contained in:
parent
a42f04cd4a
commit
770852640c
2 changed files with 1 additions and 5 deletions
|
@ -248,11 +248,6 @@ app.use((req, res, next) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get('/api/test', (req, res, next) => {
|
|
||||||
sendPin('12345678', 'zs1w6nkameazc5gujm69350syl5w8tgvyaphums3pw8eytzy5ym08x7dvskmykkatmwrucmgv3er8e');
|
|
||||||
res.status(200).send('Endpoint triggered');
|
|
||||||
});
|
|
||||||
|
|
||||||
app.get('/api/countries', (req, res, next) => {
|
app.get('/api/countries', (req, res, next) => {
|
||||||
console.log('Get: /api/countries');
|
console.log('Get: /api/countries');
|
||||||
countryModel.find({}).then((documents) => {
|
countryModel.find({}).then((documents) => {
|
||||||
|
|
|
@ -191,6 +191,7 @@ export class BusinessComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
loginCheck(){
|
loginCheck(){
|
||||||
|
this.userService.findUser();
|
||||||
this.ownerUpdate.subscribe((owner) => {
|
this.ownerUpdate.subscribe((owner) => {
|
||||||
if(owner.paid) {
|
if(owner.paid) {
|
||||||
this.router.navigate(['/shop']);
|
this.router.navigate(['/shop']);
|
||||||
|
|
Loading…
Reference in a new issue