Fix bug of detecting payment

This commit is contained in:
Rene Vergara 2022-02-02 12:26:58 -06:00
parent a42f04cd4a
commit 770852640c
2 changed files with 1 additions and 5 deletions

View File

@ -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) => {
console.log('Get: /api/countries');
countryModel.find({}).then((documents) => {

View File

@ -191,6 +191,7 @@ export class BusinessComponent implements OnInit {
}
loginCheck(){
this.userService.findUser();
this.ownerUpdate.subscribe((owner) => {
if(owner.paid) {
this.router.navigate(['/shop']);