diff --git a/backend/app.js b/backend/app.js index 467a93e..92c3234 100644 --- a/backend/app.js +++ b/backend/app.js @@ -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) => { diff --git a/src/app/business/business.component.ts b/src/app/business/business.component.ts index f8fd1f1..207846e 100644 --- a/src/app/business/business.component.ts +++ b/src/app/business/business.component.ts @@ -191,6 +191,7 @@ export class BusinessComponent implements OnInit { } loginCheck(){ + this.userService.findUser(); this.ownerUpdate.subscribe((owner) => { if(owner.paid) { this.router.navigate(['/shop']);