fixup error
This commit is contained in:
@@ -73,7 +73,7 @@ export async function GET(req: Request) {
|
||||
|
||||
const stats = await getIpInfo(req);
|
||||
await createScrapeMeta({
|
||||
ip: stats.ip,
|
||||
ip: stats.ip || "::1",
|
||||
type: "markdown",
|
||||
referer: stats.referer,
|
||||
city: stats.city,
|
||||
|
||||
@@ -87,7 +87,7 @@ export async function GET(req: Request) {
|
||||
|
||||
const stats = await getIpInfo(req);
|
||||
await createScrapeMeta({
|
||||
ip: stats.ip,
|
||||
ip: stats.ip || "::1",
|
||||
type: "meta-info",
|
||||
referer: stats.referer,
|
||||
city: stats.city,
|
||||
|
||||
@@ -44,7 +44,7 @@ export async function GET(req: Request) {
|
||||
|
||||
const stats = await getIpInfo(req);
|
||||
await createScrapeMeta({
|
||||
ip: stats.ip,
|
||||
ip: stats.ip || "::1",
|
||||
type: "qrcode",
|
||||
referer: stats.referer,
|
||||
city: stats.city,
|
||||
|
||||
@@ -72,7 +72,7 @@ export async function GET(req: Request) {
|
||||
|
||||
const stats = await getIpInfo(req);
|
||||
await createScrapeMeta({
|
||||
ip: stats.ip,
|
||||
ip: stats.ip || "::1",
|
||||
type: "screenshot",
|
||||
referer: stats.referer,
|
||||
city: stats.city,
|
||||
|
||||
@@ -66,7 +66,7 @@ export async function GET(req: Request) {
|
||||
|
||||
const stats = await getIpInfo(req);
|
||||
await createScrapeMeta({
|
||||
ip: stats.ip,
|
||||
ip: stats.ip || "::1",
|
||||
type: "text",
|
||||
referer: stats.referer,
|
||||
city: stats.city,
|
||||
|
||||
Reference in New Issue
Block a user