Add zats setting parameter to backend

This commit is contained in:
Rene Vergara 2022-03-07 11:14:29 -06:00
parent 43c34958f1
commit 8130856d8f
10 changed files with 21 additions and 10 deletions

View File

@ -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);

View File

@ -62,7 +62,8 @@ export class BusinessComponent implements OnInit {
postal: '',
country: '',
email: '',
website: ''
website: '',
zats: false
}
public countriesUpdate: Observable<Country[]>;
public ownerUpdate: Observable<Owner>;
@ -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();

View File

@ -41,7 +41,8 @@ export class FullnodeService{
phone: '',
paid: false,
website: '',
country: ''
country: '',
zats: false
};
constructor(private http: HttpClient, public userService: UserService){

View File

@ -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<number>;

View File

@ -39,7 +39,8 @@ export class ItemListComponent implements OnInit{
phone: '',
paid: false,
website: '',
country: ''
country: '',
zats: false
};
public price: number = 1;
public ownerUpdate: Observable<Owner>;

View File

@ -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();

View File

@ -41,7 +41,8 @@ export class OrderService {
phone: '',
paid: false,
website: '',
country: ''
country: '',
zats: false
},
order: {
address: '',

View File

@ -18,4 +18,5 @@ export interface Owner {
paid: boolean;
website: string;
country: string;
zats: boolean;
}

View File

@ -37,7 +37,8 @@ export class UserService{
phone: '',
paid: false,
website: '',
country: ''
country: '',
zats: false
},
txs : [],
countries: []

View File

@ -47,7 +47,8 @@ export class ViewerComponent implements OnInit {
phone: '',
paid: false,
website: '',
country: ''
country: '',
zats: false
};
public addrUpdate: Observable<string>;
public ownerUpdate: Observable<Owner>;