refactor: use path alias

This commit is contained in:
tamaina 2021-10-09 15:47:01 +09:00
parent 92c3162506
commit 33676eba51
4 changed files with 4 additions and 4 deletions

View file

@ -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 })

View file

@ -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()

View file

@ -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 {

View file

@ -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;