Add ZEC price to order
This commit is contained in:
parent
971fd7ca41
commit
7e5210723e
3 changed files with 3 additions and 5 deletions
|
@ -5,6 +5,7 @@ const orderSchema = mongoose.Schema({
|
|||
session: {type: String, required: true},
|
||||
timestamp: {type: Date, required: true, default: Date.now},
|
||||
closed: { type: Boolean, required: true, default:false },
|
||||
price: { type: Number, required: true},
|
||||
lines: [{
|
||||
qty: {type: Number, required: true, default: 1},
|
||||
name: { type: String, required: true},
|
||||
|
|
|
@ -6,5 +6,6 @@ export interface Order {
|
|||
session: string,
|
||||
timestamp?: string,
|
||||
closed: boolean,
|
||||
price?: number,
|
||||
lines: LineItem[]
|
||||
}
|
||||
|
|
|
@ -4,14 +4,9 @@ import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|||
import { UserService } from '../user.service';
|
||||
import { FullnodeService } from '../fullnode.service';
|
||||
import { ItemService } from '../items/items.service';
|
||||
//import { NameDialogComponent } from '../namedialog/namedialog.component'; // TODO: connect dialog
|
||||
import { Subscription, Observable } from 'rxjs';
|
||||
|
||||
import {Owner} from '../owner.model';
|
||||
//import { v4 as uuidv4 } from 'uuid';
|
||||
//var QRCode = require('easyqrcodejs');
|
||||
//var URLSafeBase64 = require('urlsafe-base64');
|
||||
//var Buffer = require('buffer/').Buffer;
|
||||
|
||||
|
||||
@Component({
|
||||
|
@ -42,6 +37,7 @@ export class ViewerComponent implements OnInit {
|
|||
}
|
||||
|
||||
ngOnDestroy(){
|
||||
this.ownerUpdate.unsubscribe();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue