Merge branch 'master' into nymkappa/bugfix/historical-price-bitcoin-only
This commit is contained in:
commit
20404cf6a0
@ -476,9 +476,11 @@ class DatabaseMigration {
|
|||||||
|
|
||||||
if (databaseSchemaVersion < 54) {
|
if (databaseSchemaVersion < 54) {
|
||||||
this.uniqueLog(logger.notice, `'prices' table has been truncated`);
|
this.uniqueLog(logger.notice, `'prices' table has been truncated`);
|
||||||
this.uniqueLog(logger.notice, `'blocks_prices' table has been truncated`);
|
|
||||||
await this.$executeQuery(`TRUNCATE prices`);
|
await this.$executeQuery(`TRUNCATE prices`);
|
||||||
|
if (isBitcoin === true) {
|
||||||
|
this.uniqueLog(logger.notice, `'blocks_prices' table has been truncated`);
|
||||||
await this.$executeQuery(`TRUNCATE blocks_prices`);
|
await this.$executeQuery(`TRUNCATE blocks_prices`);
|
||||||
|
}
|
||||||
await this.updateToSchemaVersion(54);
|
await this.updateToSchemaVersion(54);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="holder" [ngStyle]="{'width': size, 'height': size}">
|
<div class="holder" [ngStyle]="{'width': size, 'height': size}">
|
||||||
<img *ngIf="imageUrl" [src]="imageUrl">
|
<img *ngIf="imageUrl" [src]="imageUrl">
|
||||||
<canvas #canvas></canvas>
|
<canvas #canvas [style]="{'border': border + 'px solid white'}"></canvas>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,6 +12,7 @@ export class QrcodeComponent implements AfterViewInit {
|
|||||||
@Input() data: string;
|
@Input() data: string;
|
||||||
@Input() size = 125;
|
@Input() size = 125;
|
||||||
@Input() imageUrl: string;
|
@Input() imageUrl: string;
|
||||||
|
@Input() border = 0;
|
||||||
@ViewChild('canvas') canvas: ElementRef;
|
@ViewChild('canvas') canvas: ElementRef;
|
||||||
|
|
||||||
qrcodeObject: any;
|
qrcodeObject: any;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user