diff --git a/src/api/private/me/history/history.controller.ts b/src/api/private/me/history/history.controller.ts index 2bdedab36..3cb5f32a8 100644 --- a/src/api/private/me/history/history.controller.ts +++ b/src/api/private/me/history/history.controller.ts @@ -24,9 +24,9 @@ import { HistoryEntryDto } from '../../../../history/history-entry.dto'; import { HistoryService } from '../../../../history/history.service'; import { SessionGuard } from '../../../../identity/session.guard'; import { ConsoleLoggerService } from '../../../../logger/console-logger.service'; -import { GetNotePipe } from '../../../../notes/get-note.pipe'; import { Note } from '../../../../notes/note.entity'; import { User } from '../../../../users/user.entity'; +import { GetNotePipe } from '../../../utils/get-note.pipe'; import { RequestUser } from '../../../utils/request-user.decorator'; @UseGuards(SessionGuard) diff --git a/src/api/private/notes/notes.controller.ts b/src/api/private/notes/notes.controller.ts index 0b829ebb6..c7007c878 100644 --- a/src/api/private/notes/notes.controller.ts +++ b/src/api/private/notes/notes.controller.ts @@ -27,7 +27,6 @@ import { SessionGuard } from '../../../identity/session.guard'; import { ConsoleLoggerService } from '../../../logger/console-logger.service'; import { MediaUploadDto } from '../../../media/media-upload.dto'; import { MediaService } from '../../../media/media.service'; -import { GetNotePipe } from '../../../notes/get-note.pipe'; import { NoteDto } from '../../../notes/note.dto'; import { Note } from '../../../notes/note.entity'; import { NoteMediaDeletionDto } from '../../../notes/note.media-deletion.dto'; @@ -38,6 +37,7 @@ import { RevisionDto } from '../../../revisions/revision.dto'; import { RevisionsService } from '../../../revisions/revisions.service'; import { User } from '../../../users/user.entity'; import { UsersService } from '../../../users/users.service'; +import { GetNotePipe } from '../../utils/get-note.pipe'; import { MarkdownBody } from '../../utils/markdownbody-decorator'; import { RequestUser } from '../../utils/request-user.decorator'; diff --git a/src/api/public/me/me.controller.ts b/src/api/public/me/me.controller.ts index ae05cbaac..a64e412dd 100644 --- a/src/api/public/me/me.controller.ts +++ b/src/api/public/me/me.controller.ts @@ -31,7 +31,6 @@ import { HistoryService } from '../../../history/history.service'; import { ConsoleLoggerService } from '../../../logger/console-logger.service'; import { MediaUploadDto } from '../../../media/media-upload.dto'; import { MediaService } from '../../../media/media.service'; -import { GetNotePipe } from '../../../notes/get-note.pipe'; import { NoteMetadataDto } from '../../../notes/note-metadata.dto'; import { Note } from '../../../notes/note.entity'; import { NotesService } from '../../../notes/notes.service'; @@ -43,6 +42,7 @@ import { successfullyDeletedDescription, unauthorizedDescription, } from '../../utils/descriptions'; +import { GetNotePipe } from '../../utils/get-note.pipe'; import { RequestUser } from '../../utils/request-user.decorator'; @ApiTags('me') diff --git a/src/api/public/notes/notes.controller.ts b/src/api/public/notes/notes.controller.ts index 31172cc78..49583e92c 100644 --- a/src/api/public/notes/notes.controller.ts +++ b/src/api/public/notes/notes.controller.ts @@ -39,7 +39,6 @@ import { HistoryService } from '../../../history/history.service'; import { ConsoleLoggerService } from '../../../logger/console-logger.service'; import { MediaUploadDto } from '../../../media/media-upload.dto'; import { MediaService } from '../../../media/media.service'; -import { GetNotePipe } from '../../../notes/get-note.pipe'; import { NoteMetadataDto } from '../../../notes/note-metadata.dto'; import { NotePermissionsDto, @@ -60,6 +59,7 @@ import { unauthorizedDescription, } from '../../utils/descriptions'; import { FullApi } from '../../utils/fullapi-decorator'; +import { GetNotePipe } from '../../utils/get-note.pipe'; import { MarkdownBody } from '../../utils/markdownbody-decorator'; import { RequestUser } from '../../utils/request-user.decorator'; diff --git a/src/notes/get-note.pipe.ts b/src/api/utils/get-note.pipe.ts similarity index 78% rename from src/notes/get-note.pipe.ts rename to src/api/utils/get-note.pipe.ts index c8cdd4cd5..f20c770ca 100644 --- a/src/notes/get-note.pipe.ts +++ b/src/api/utils/get-note.pipe.ts @@ -11,10 +11,10 @@ import { PipeTransform, } from '@nestjs/common'; -import { ForbiddenIdError, NotInDBError } from '../errors/errors'; -import { ConsoleLoggerService } from '../logger/console-logger.service'; -import { Note } from './note.entity'; -import { NotesService } from './notes.service'; +import { ForbiddenIdError, NotInDBError } from '../../errors/errors'; +import { ConsoleLoggerService } from '../../logger/console-logger.service'; +import { Note } from '../../notes/note.entity'; +import { NotesService } from '../../notes/notes.service'; @Injectable() export class GetNotePipe implements PipeTransform> {