Skip to content

Commit f28b72d

Browse files
committed
fix: private function and wrong heartbeat endpoint
1 parent 829db8d commit f28b72d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/heartbeat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export class HeartbeatManager {
294294
}
295295
}
296296

297-
private async fetchDailySummary(): Promise<void> {
297+
public async fetchDailySummary(): Promise<void> {
298298
const apiKey = await getApiKey();
299299
const baseUrl = await getBaseUrl();
300300
if (!apiKey || !baseUrl) {
@@ -537,7 +537,7 @@ export class HeartbeatManager {
537537
}
538538
try {
539539
const data = JSON.stringify(heartbeat);
540-
const url = new URL(`${baseUrl}/api/external/heartbeats`);
540+
const url = new URL(`${baseUrl}/api/external/heartbeat`);
541541
const requestOptions = {
542542
hostname: url.hostname,
543543
port: url.port || (url.protocol === "https:" ? 443 : 80),

0 commit comments

Comments
 (0)