add .js to the end of two type-scripts, fixing a critical error that crashes calckey

This commit is contained in:
Daikei! 2022-12-27 15:38:05 +00:00
parent 9ed884ec78
commit 76d71a39db
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { fetchMeta } from '@/misc/fetch-meta.js';
import { Instances } from '@/models/index.js'; import { Instances } from '@/models/index.js';
import { Instance } from '@/models/entities/instance.js'; import { Instance } from '@/models/entities/instance.js';
import { DAY } from '@/const.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 // Threshold from last contact after which an instance will be considered
// "dead" and should no longer get activities delivered to it. // "dead" and should no longer get activities delivered to it.

View File

@ -6,7 +6,7 @@ import { URL } from 'url';
import { toPuny } from '@/misc/convert-host.js'; import { toPuny } from '@/misc/convert-host.js';
import DbResolver from '@/remote/activitypub/db-resolver.js'; import DbResolver from '@/remote/activitypub/db-resolver.js';
import { getApId } from '@/remote/activitypub/type.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<number> { export default async function checkFetch(req: IncomingMessage): Promise<number> {