diff --git a/backend/app.js b/backend/app.js index 7ada4dd..2c0693a 100644 --- a/backend/app.js +++ b/backend/app.js @@ -124,7 +124,7 @@ var blockInterval = setInterval( function() { console.log(err); } }); - if (txData.confirmations >= 6 ) { + if (txData.confirmations >= 2 ) { usermodel.findOne({address: address, session: session, blocktime: blocktime}).then(function(doc){ if (doc == null){ console.log('User not found', session, blocktime); diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 464931c..f555a0b 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,6 +2,7 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ViewerComponent } from './viewer/viewer.component'; import { LoginComponent } from './login/login.component'; +import { BusinessComponent } from './business/business.component'; import { ListOrdersComponent } from './listorders/listorders.component'; import { AuthGuardService } from './auth-guard.service'; import { NodeResolverService } from './node-resolver.service'; @@ -11,6 +12,7 @@ const routes: Routes = [ //{ path: 'create', component: PostCreateComponent, canActivate: [AuthGuardService]}, { path: 'shop', component: ViewerComponent, canActivate: [AuthGuardService]}, { path: 'orders', component: ListOrdersComponent, canActivate: [AuthGuardService]}, + { path: 'biz', component: BusinessComponent}, { path: 'login', component: LoginComponent, resolve: { response: NodeResolverService}} ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2cb527c..7633a41 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -31,6 +31,7 @@ import { SettingsComponent } from './settings/settings.component'; import { ListOrdersComponent } from './listorders/listorders.component'; import { ScanComponent } from './scan/scan.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { BusinessComponent } from './business/business.component'; @NgModule({ declarations: [ @@ -47,7 +48,8 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; CheckoutComponent, SettingsComponent, ScanComponent, - ListOrdersComponent + ListOrdersComponent, + BusinessComponent ], imports: [ BrowserModule,