mirror of
https://github.com/mempool/mempool.git
synced 2025-03-17 21:32:02 +01:00
retreive -> retrieve
This commit is contained in:
parent
bc7230a5ef
commit
9d711c336a
@ -1469,11 +1469,11 @@ class Blocks {
|
|||||||
if (rows && Array.isArray(rows)) {
|
if (rows && Array.isArray(rows)) {
|
||||||
return rows.map(r => r.definition_hash);
|
return rows.map(r => r.definition_hash);
|
||||||
} else {
|
} else {
|
||||||
logger.debug(`Unable to retreive list of blocks.definition_hash from db (no result)`);
|
logger.debug(`Unable to retrieve list of blocks.definition_hash from db (no result)`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.debug(`Unable to retreive list of blocks.definition_hash from db (exception: ${e})`);
|
logger.debug(`Unable to retrieve list of blocks.definition_hash from db (exception: ${e})`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1484,11 +1484,11 @@ class Blocks {
|
|||||||
if (rows && Array.isArray(rows)) {
|
if (rows && Array.isArray(rows)) {
|
||||||
return rows.map(r => r.hash);
|
return rows.map(r => r.hash);
|
||||||
} else {
|
} else {
|
||||||
logger.debug(`Unable to retreive list of blocks for definition hash ${definitionHash} from db (no result)`);
|
logger.debug(`Unable to retrieve list of blocks for definition hash ${definitionHash} from db (no result)`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.debug(`Unable to retreive list of blocks for definition hash ${definitionHash} from db (exception: ${e})`);
|
logger.debug(`Unable to retrieve list of blocks for definition hash ${definitionHash} from db (exception: ${e})`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ class HashratesRepository {
|
|||||||
const [rows]: any[] = await DB.query(query);
|
const [rows]: any[] = await DB.query(query);
|
||||||
return rows.map(row => row.timestamp);
|
return rows.map(row => row.timestamp);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.err('Cannot retreive indexed weekly hashrate timestamps. Reason: ' + (e instanceof Error ? e.message : e), logger.tags.mining);
|
logger.err('Cannot retrieve indexed weekly hashrate timestamps. Reason: ' + (e instanceof Error ? e.message : e), logger.tags.mining);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -525,7 +525,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
if (tokenResult?.status === 'OK') {
|
if (tokenResult?.status === 'OK') {
|
||||||
const card = tokenResult.details?.card;
|
const card = tokenResult.details?.card;
|
||||||
if (!card || !card.brand || !card.expMonth || !card.expYear || !card.last4) {
|
if (!card || !card.brand || !card.expMonth || !card.expYear || !card.last4) {
|
||||||
console.error(`Cannot retreive payment card details`);
|
console.error(`Cannot retrieve payment card details`);
|
||||||
this.accelerateError = 'apple_pay_no_card_details';
|
this.accelerateError = 'apple_pay_no_card_details';
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
return;
|
return;
|
||||||
@ -643,7 +643,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
if (tokenResult?.status === 'OK') {
|
if (tokenResult?.status === 'OK') {
|
||||||
const card = tokenResult.details?.card;
|
const card = tokenResult.details?.card;
|
||||||
if (!card || !card.brand || !card.expMonth || !card.expYear || !card.last4) {
|
if (!card || !card.brand || !card.expMonth || !card.expYear || !card.last4) {
|
||||||
console.error(`Cannot retreive payment card details`);
|
console.error(`Cannot retrieve payment card details`);
|
||||||
this.accelerateError = 'apple_pay_no_card_details';
|
this.accelerateError = 'apple_pay_no_card_details';
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
return;
|
return;
|
||||||
@ -936,7 +936,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
this.loadingBtcpayInvoice = true;
|
this.loadingBtcpayInvoice = true;
|
||||||
this.servicesApiService.generateBTCPayAcceleratorInvoice$(this.tx.txid, this.userBid).pipe(
|
this.servicesApiService.generateBTCPayAcceleratorInvoice$(this.tx.txid, this.userBid).pipe(
|
||||||
switchMap(response => {
|
switchMap(response => {
|
||||||
return this.servicesApiService.retreiveInvoice$(response.btcpayInvoiceId);
|
return this.servicesApiService.retrieveInvoice$(response.btcpayInvoiceId);
|
||||||
}),
|
}),
|
||||||
catchError(error => {
|
catchError(error => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
@ -11803,7 +11803,7 @@ export const restApiDocsData = [
|
|||||||
fragment: "accelerator-cancel",
|
fragment: "accelerator-cancel",
|
||||||
title: "POST Cancel Acceleration (Pro)",
|
title: "POST Cancel Acceleration (Pro)",
|
||||||
description: {
|
description: {
|
||||||
default: "<p>Sends a request to cancel an acceleration in the <code>accelerating</code> status.<br>You can retreive eligible acceleration <code>id</code> using the history endpoint GET <code>/api/v1/services/accelerator/history?status=accelerating</code>."
|
default: "<p>Sends a request to cancel an acceleration in the <code>accelerating</code> status.<br>You can retrieve eligible acceleration <code>id</code> using the history endpoint GET <code>/api/v1/services/accelerator/history?status=accelerating</code>."
|
||||||
},
|
},
|
||||||
urlString: "/v1/services/accelerator/cancel",
|
urlString: "/v1/services/accelerator/cancel",
|
||||||
showConditions: [""],
|
showConditions: [""],
|
||||||
|
@ -213,7 +213,7 @@ export class ServicesApiServices {
|
|||||||
return this.httpClient.post<any>(`${this.stateService.env.SERVICES_API}/payments/bitcoin`, params);
|
return this.httpClient.post<any>(`${this.stateService.env.SERVICES_API}/payments/bitcoin`, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
retreiveInvoice$(invoiceId: string): Observable<any[]> {
|
retrieveInvoice$(invoiceId: string): Observable<any[]> {
|
||||||
return this.httpClient.get<any[]>(`${this.stateService.env.SERVICES_API}/payments/bitcoin/invoice?id=${invoiceId}`);
|
return this.httpClient.get<any[]>(`${this.stateService.env.SERVICES_API}/payments/bitcoin/invoice?id=${invoiceId}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user