From 33676eba51f1f74c2b84d7bbdf2b4b3f438556db Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 9 Oct 2021 15:47:01 +0900 Subject: [PATCH] refactor: use path alias --- src/models/entities/muted-note.ts | 2 +- src/models/entities/note.ts | 2 +- src/models/entities/poll.ts | 2 +- src/server/api/endpoints/notes/create.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/entities/muted-note.ts b/src/models/entities/muted-note.ts index 521876688c..3cb6c13d3e 100644 --- a/src/models/entities/muted-note.ts +++ b/src/models/entities/muted-note.ts @@ -2,7 +2,7 @@ import { Entity, Index, JoinColumn, Column, ManyToOne, PrimaryColumn } from 'typ import { Note } from './note'; import { User } from './user'; import { id } from '../id'; -import { mutedNoteReasons } from '../../types'; +import { mutedNoteReasons } from '@/types'; @Entity() @Index(['noteId', 'userId'], { unique: true }) diff --git a/src/models/entities/note.ts b/src/models/entities/note.ts index 9a85532637..e9d67de3e5 100644 --- a/src/models/entities/note.ts +++ b/src/models/entities/note.ts @@ -2,7 +2,7 @@ import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typ import { User } from './user'; import { DriveFile } from './drive-file'; import { id } from '../id'; -import { noteVisibilities } from '../../types'; +import { noteVisibilities } from '@/types'; import { Channel } from './channel'; @Entity() diff --git a/src/models/entities/poll.ts b/src/models/entities/poll.ts index e3bbb1c3f2..f88649b4ea 100644 --- a/src/models/entities/poll.ts +++ b/src/models/entities/poll.ts @@ -2,7 +2,7 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, OneToOne } from 'type import { id } from '../id'; import { Note } from './note'; import { User } from './user'; -import { noteVisibilities } from '../../types'; +import { noteVisibilities } from '@/types'; @Entity() export class Poll { diff --git a/src/server/api/endpoints/notes/create.ts b/src/server/api/endpoints/notes/create.ts index 751673f955..94db172b69 100644 --- a/src/server/api/endpoints/notes/create.ts +++ b/src/server/api/endpoints/notes/create.ts @@ -11,7 +11,7 @@ import { Users, DriveFiles, Notes, Channels, Blockings } from '@/models/index'; import { DriveFile } from '@/models/entities/drive-file'; import { Note } from '@/models/entities/note'; import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits'; -import { noteVisibilities } from '../../../../types'; +import { noteVisibilities } from '@/types'; import { Channel } from '@/models/entities/channel'; let maxNoteTextLength = 500;