From 79776677a1bfc92f8131d3c7bd118f0156102c65 Mon Sep 17 00:00:00 2001 From: Daikei! Date: Tue, 27 Dec 2022 15:38:05 +0000 Subject: [PATCH] add .js to the end of two type-scripts, fixing a critical error that crashes calckey --- packages/backend/src/misc/skipped-instances.ts | 2 +- packages/backend/src/remote/activitypub/check-fetch.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/misc/skipped-instances.ts b/packages/backend/src/misc/skipped-instances.ts index 4d239255d..d42b4ee5c 100644 --- a/packages/backend/src/misc/skipped-instances.ts +++ b/packages/backend/src/misc/skipped-instances.ts @@ -3,7 +3,7 @@ import { fetchMeta } from '@/misc/fetch-meta.js'; import { Instances } from '@/models/index.js'; import { Instance } from '@/models/entities/instance.js'; import { DAY } from '@/const.js'; -import { shouldBlockInstance } from './should-block-instance'; +import { shouldBlockInstance } from './should-block-instance.js'; // Threshold from last contact after which an instance will be considered // "dead" and should no longer get activities delivered to it. diff --git a/packages/backend/src/remote/activitypub/check-fetch.ts b/packages/backend/src/remote/activitypub/check-fetch.ts index 01797f908..62b7f0f3b 100644 --- a/packages/backend/src/remote/activitypub/check-fetch.ts +++ b/packages/backend/src/remote/activitypub/check-fetch.ts @@ -6,7 +6,7 @@ import { URL } from 'url'; import { toPuny } from '@/misc/convert-host.js'; import DbResolver from '@/remote/activitypub/db-resolver.js'; import { getApId } from '@/remote/activitypub/type.js'; -import { shouldBlockInstance } from '@/misc/should-block-instance'; +import { shouldBlockInstance } from '@/misc/should-block-instance.js'; export default async function checkFetch(req: IncomingMessage): Promise {