This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-28 23:22:49 +02:00
parent 1f3b56cdbb
commit 9fab18a895
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import icoToPng from 'ico-to-png';
import sharp from 'sharp'; import sharp from 'sharp';
import { createHash } from '@openpanel/common'; import { createHash } from '@openpanel/common';
import { ch, TABLE_NAMES } from '@openpanel/db'; import { ch, formatClickhouseDate, TABLE_NAMES } from '@openpanel/db';
import { getRedisCache } from '@openpanel/redis'; import { getRedisCache } from '@openpanel/redis';
interface GetFaviconParams { interface GetFaviconParams {
@@ -128,7 +128,7 @@ export async function ping(
{ {
domain: request.body.domain, domain: request.body.domain,
count: request.body.count, count: request.body.count,
created_at: new Date(), created_at: formatClickhouseDate(new Date(), true),
}, },
], ],
format: 'JSONEachRow', format: 'JSONEachRow',

View File

@@ -6,7 +6,7 @@ export async function ping() {
); );
if (typeof res?.count === 'number') { if (typeof res?.count === 'number') {
const response = await fetch('https://api.openpanel.com/misc/ping', { const response = await fetch('https://api.openpanel.dev/misc/ping', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',