diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-19 21:55:45 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-19 21:55:45 +0900 |
| commit | 42cc93dd0f189995f29fc87d2734fc809105a7cf (patch) | |
| tree | 7a74658a76d71d4c07bf89a7028fa1786af0e13e /src/tools | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | sharkey-42cc93dd0f189995f29fc87d2734fc809105a7cf.tar.gz sharkey-42cc93dd0f189995f29fc87d2734fc809105a7cf.tar.bz2 sharkey-42cc93dd0f189995f29fc87d2734fc809105a7cf.zip | |
fix: mochaが動かないため拡張子なしに戻した
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/accept-migration.ts | 2 | ||||
| -rw-r--r-- | src/tools/add-emoji.ts | 4 | ||||
| -rw-r--r-- | src/tools/demote-admin.ts | 4 | ||||
| -rw-r--r-- | src/tools/mark-admin.ts | 4 | ||||
| -rw-r--r-- | src/tools/refresh-question.ts | 2 | ||||
| -rw-r--r-- | src/tools/resync-remote-user.ts | 4 | ||||
| -rw-r--r-- | src/tools/show-signin-history.ts | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/src/tools/accept-migration.ts b/src/tools/accept-migration.ts index adbfcdadf7..2e54fc129f 100644 --- a/src/tools/accept-migration.ts +++ b/src/tools/accept-migration.ts @@ -1,7 +1,7 @@ // ex) node built/tools/accept-migration Yo 1000000000001 import { createConnection } from 'typeorm'; -import config from '@/config/index.js'; +import config from '@/config/index'; createConnection({ type: 'postgres', diff --git a/src/tools/add-emoji.ts b/src/tools/add-emoji.ts index 054286c647..9ffe7dfa81 100644 --- a/src/tools/add-emoji.ts +++ b/src/tools/add-emoji.ts @@ -1,5 +1,5 @@ -import { Emojis } from '@/models/index.js'; -import { genId } from '@/misc/gen-id.js'; +import { Emojis } from '@/models/index'; +import { genId } from '@/misc/gen-id'; async function main(name: string, url: string, alias?: string): Promise<any> { const aliases = alias != null ? [ alias ] : []; diff --git a/src/tools/demote-admin.ts b/src/tools/demote-admin.ts index 37bd5007a8..d7c6d1cec2 100644 --- a/src/tools/demote-admin.ts +++ b/src/tools/demote-admin.ts @@ -1,6 +1,6 @@ -import { initDb } from '../db/postgre.js'; +import { initDb } from '../db/postgre'; import { getRepository } from 'typeorm'; -import { User } from '@/models/entities/user.js'; +import { User } from '@/models/entities/user'; async function main(username: string) { if (!username) throw `username required`; diff --git a/src/tools/mark-admin.ts b/src/tools/mark-admin.ts index 4c583926eb..62ed0f09ee 100644 --- a/src/tools/mark-admin.ts +++ b/src/tools/mark-admin.ts @@ -1,6 +1,6 @@ -import { initDb } from '../db/postgre.js'; +import { initDb } from '../db/postgre'; import { getRepository } from 'typeorm'; -import { User } from '@/models/entities/user.js'; +import { User } from '@/models/entities/user'; async function main(username: string) { if (!username) throw `username required`; diff --git a/src/tools/refresh-question.ts b/src/tools/refresh-question.ts index 3e850ba83c..98a3c2865f 100644 --- a/src/tools/refresh-question.ts +++ b/src/tools/refresh-question.ts @@ -1,4 +1,4 @@ -import { updateQuestion } from '@/remote/activitypub/models/question.js'; +import { updateQuestion } from '@/remote/activitypub/models/question'; async function main(uri: string): Promise<any> { return await updateQuestion(uri); diff --git a/src/tools/resync-remote-user.ts b/src/tools/resync-remote-user.ts index 3c02fb94c7..bc43e250cb 100644 --- a/src/tools/resync-remote-user.ts +++ b/src/tools/resync-remote-user.ts @@ -1,5 +1,5 @@ -import { initDb } from '@/db/postgre.js'; -import { parseAcct } from '@/misc/acct.js'; +import { initDb } from '@/db/postgre'; +import { parseAcct } from '@/misc/acct'; async function main(acct: string): Promise<any> { await initDb(); diff --git a/src/tools/show-signin-history.ts b/src/tools/show-signin-history.ts index 6fdff3902e..ad92316314 100644 --- a/src/tools/show-signin-history.ts +++ b/src/tools/show-signin-history.ts @@ -1,4 +1,4 @@ -import { Users, Signins } from '@/models/index.js'; +import { Users, Signins } from '@/models/index'; // node built/tools/show-signin-history username // => {Success} {Date} {IPAddrsss} |