/accelerations -> /accelerator/accelerations

This commit is contained in:
nymkappa 2023-07-22 09:46:35 +09:00 committed by Mononaut
parent cde4af5930
commit 67cff804a6
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -11,7 +11,7 @@ export interface Acceleration {
class AccelerationApi { class AccelerationApi {
public async $fetchAccelerations(): Promise<Acceleration[]> { public async $fetchAccelerations(): Promise<Acceleration[]> {
if (config.MEMPOOL_SERVICES.ACCELERATIONS) { if (config.MEMPOOL_SERVICES.ACCELERATIONS) {
const response = await query(`${config.MEMPOOL_SERVICES.API}/accelerations`); const response = await query(`${config.MEMPOOL_SERVICES.API}/accelerator/accelerations`);
return (response as Acceleration[]) || []; return (response as Acceleration[]) || [];
} else { } else {
return []; return [];