diff --git a/backend/models/owner.js b/backend/models/owner.js index e3ba19a..f4205b9 100644 --- a/backend/models/owner.js +++ b/backend/models/owner.js @@ -17,7 +17,8 @@ const ownerSchema = mongoose.Schema({ postal: {type: String, required: true}, phone: {type: String}, website: {type: String}, - paid: {type: Boolean, required: true, default: false} + paid: {type: Boolean, required: true, default: false}, + zats: {type: Boolean, required: true, default: false} }); module.exports = mongoose.model('Owner', ownerSchema); diff --git a/src/app/business/business.component.ts b/src/app/business/business.component.ts index 207846e..bb345ff 100644 --- a/src/app/business/business.component.ts +++ b/src/app/business/business.component.ts @@ -62,7 +62,8 @@ export class BusinessComponent implements OnInit { postal: '', country: '', email: '', - website: '' + website: '', + zats: false } public countriesUpdate: Observable; public ownerUpdate: Observable; @@ -163,7 +164,8 @@ export class BusinessComponent implements OnInit { postal: this.bizForm.get('postal')!.value, country: this.bizForm.get('country')!.value, email: this.bizForm.get('email')!.value, - website: this.bizForm.get('website')!.value + website: this.bizForm.get('website')!.value, + zats: false }; this.userService.addOwner(this.owner); this.stepper!.next(); diff --git a/src/app/fullnode.service.ts b/src/app/fullnode.service.ts index 69f469f..d652816 100644 --- a/src/app/fullnode.service.ts +++ b/src/app/fullnode.service.ts @@ -41,7 +41,8 @@ export class FullnodeService{ phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }; constructor(private http: HttpClient, public userService: UserService){ diff --git a/src/app/header/header.component.ts b/src/app/header/header.component.ts index a1441e5..298b4ff 100644 --- a/src/app/header/header.component.ts +++ b/src/app/header/header.component.ts @@ -36,7 +36,8 @@ export class HeaderComponent implements OnInit, OnDestroy { phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }; private session: string | null = ''; public heightUpdate: Observable; diff --git a/src/app/items/item-list/item-list.component.ts b/src/app/items/item-list/item-list.component.ts index 1b3dad7..97b9389 100644 --- a/src/app/items/item-list/item-list.component.ts +++ b/src/app/items/item-list/item-list.component.ts @@ -39,7 +39,8 @@ export class ItemListComponent implements OnInit{ phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }; public price: number = 1; public ownerUpdate: Observable; diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index d5209b0..315379f 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -57,7 +57,8 @@ export class LoginComponent implements OnInit, AfterViewInit { phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }; private FullnodeSub: Subscription = new Subscription(); private UserSub: Subscription = new Subscription(); diff --git a/src/app/order/order.service.ts b/src/app/order/order.service.ts index a2497dc..6e64ac4 100644 --- a/src/app/order/order.service.ts +++ b/src/app/order/order.service.ts @@ -41,7 +41,8 @@ export class OrderService { phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }, order: { address: '', diff --git a/src/app/owner.model.ts b/src/app/owner.model.ts index 73771c8..b80dc95 100644 --- a/src/app/owner.model.ts +++ b/src/app/owner.model.ts @@ -18,4 +18,5 @@ export interface Owner { paid: boolean; website: string; country: string; + zats: boolean; } diff --git a/src/app/user.service.ts b/src/app/user.service.ts index d4796e5..b141ea6 100644 --- a/src/app/user.service.ts +++ b/src/app/user.service.ts @@ -37,7 +37,8 @@ export class UserService{ phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }, txs : [], countries: [] diff --git a/src/app/viewer/viewer.component.ts b/src/app/viewer/viewer.component.ts index b1fd217..2d15e8f 100644 --- a/src/app/viewer/viewer.component.ts +++ b/src/app/viewer/viewer.component.ts @@ -47,7 +47,8 @@ export class ViewerComponent implements OnInit { phone: '', paid: false, website: '', - country: '' + country: '', + zats: false }; public addrUpdate: Observable; public ownerUpdate: Observable;