From da9df033c5f28aa7c24dab4322090d494747fb16 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Fri, 18 Aug 2023 17:21:21 +0900 Subject: [PATCH] missing dd1783f9 --- packages/backend/src/server/api/endpoints/admin/emoji/adds.ts | 3 +-- packages/backend/src/server/api/endpoints/flash/gen-token.ts | 4 ++-- .../src/server/api/endpoints/i/read-all-messaging-messages.ts | 3 +-- .../backend/src/server/api/endpoints/i/user-group-invites.ts | 3 +-- .../backend/src/server/api/endpoints/messaging/history.ts | 3 +-- .../backend/src/server/api/endpoints/messaging/messages.ts | 3 +-- .../src/server/api/endpoints/messaging/messages/create.ts | 3 +-- .../src/server/api/endpoints/messaging/messages/delete.ts | 3 +-- .../src/server/api/endpoints/messaging/messages/read.ts | 3 +-- .../backend/src/server/api/endpoints/notes/cat-timeline.ts | 3 +-- .../backend/src/server/api/endpoints/notes/events/search.ts | 3 +-- .../backend/src/server/api/endpoints/notes/media-timeline.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/create.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/delete.ts | 3 +-- .../server/api/endpoints/users/groups/invitations/accept.ts | 3 +-- .../server/api/endpoints/users/groups/invitations/reject.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/invite.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/joined.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/leave.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/owned.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/pull.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/show.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/transfer.ts | 3 +-- .../backend/src/server/api/endpoints/users/groups/update.ts | 3 +-- packages/backend/src/server/api/endpoints/users/translate.ts | 3 +-- 25 files changed, 26 insertions(+), 50 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/adds.ts b/packages/backend/src/server/api/endpoints/admin/emoji/adds.ts index 23904edc38..67a2fa2ebd 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/adds.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/adds.ts @@ -53,9 +53,8 @@ export const paramDef = { // TODO: ロジックをサービスに切り出す -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.driveFilesRepository) private driveFilesRepository: DriveFilesRepository, diff --git a/packages/backend/src/server/api/endpoints/flash/gen-token.ts b/packages/backend/src/server/api/endpoints/flash/gen-token.ts index 362660c43e..fbfe912966 100644 --- a/packages/backend/src/server/api/endpoints/flash/gen-token.ts +++ b/packages/backend/src/server/api/endpoints/flash/gen-token.ts @@ -42,8 +42,8 @@ export const paramDef = { required: ['permissions'], } as const; -@Injectable() // eslint-disable-next-line import/no-default-export -export default class extends Endpoint { +@Injectable() +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor ( private cacheService: CacheService, ) { diff --git a/packages/backend/src/server/api/endpoints/i/read-all-messaging-messages.ts b/packages/backend/src/server/api/endpoints/i/read-all-messaging-messages.ts index caf11a72c5..66f93e9e9d 100644 --- a/packages/backend/src/server/api/endpoints/i/read-all-messaging-messages.ts +++ b/packages/backend/src/server/api/endpoints/i/read-all-messaging-messages.ts @@ -23,9 +23,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.messagingMessagesRepository) private messagingMessagesRepository: MessagingMessagesRepository, diff --git a/packages/backend/src/server/api/endpoints/i/user-group-invites.ts b/packages/backend/src/server/api/endpoints/i/user-group-invites.ts index 50d7fe5552..88bb0c622c 100644 --- a/packages/backend/src/server/api/endpoints/i/user-group-invites.ts +++ b/packages/backend/src/server/api/endpoints/i/user-group-invites.ts @@ -49,9 +49,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupInvitationsRepository) private userGroupInvitationsRepository: UserGroupInvitationsRepository, diff --git a/packages/backend/src/server/api/endpoints/messaging/history.ts b/packages/backend/src/server/api/endpoints/messaging/history.ts index 81a1a6e8bc..3159ca4ee1 100644 --- a/packages/backend/src/server/api/endpoints/messaging/history.ts +++ b/packages/backend/src/server/api/endpoints/messaging/history.ts @@ -38,9 +38,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.messagingMessagesRepository) private messagingMessagesRepository: MessagingMessagesRepository, diff --git a/packages/backend/src/server/api/endpoints/messaging/messages.ts b/packages/backend/src/server/api/endpoints/messaging/messages.ts index a08cf8ab22..4be9b29edd 100644 --- a/packages/backend/src/server/api/endpoints/messaging/messages.ts +++ b/packages/backend/src/server/api/endpoints/messaging/messages.ts @@ -69,9 +69,8 @@ export const paramDef = { ], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.messagingMessagesRepository) private messagingMessagesRepository: MessagingMessagesRepository, diff --git a/packages/backend/src/server/api/endpoints/messaging/messages/create.ts b/packages/backend/src/server/api/endpoints/messaging/messages/create.ts index cb1ce87b87..eb678fca4f 100644 --- a/packages/backend/src/server/api/endpoints/messaging/messages/create.ts +++ b/packages/backend/src/server/api/endpoints/messaging/messages/create.ts @@ -91,9 +91,8 @@ export const paramDef = { ], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/messaging/messages/delete.ts b/packages/backend/src/server/api/endpoints/messaging/messages/delete.ts index f815a9f22c..8402ed8a00 100644 --- a/packages/backend/src/server/api/endpoints/messaging/messages/delete.ts +++ b/packages/backend/src/server/api/endpoints/messaging/messages/delete.ts @@ -41,9 +41,8 @@ export const paramDef = { required: ['messageId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.messagingMessagesRepository) private messagingMessagesRepository: MessagingMessagesRepository, diff --git a/packages/backend/src/server/api/endpoints/messaging/messages/read.ts b/packages/backend/src/server/api/endpoints/messaging/messages/read.ts index f411338de3..d6f99b2340 100644 --- a/packages/backend/src/server/api/endpoints/messaging/messages/read.ts +++ b/packages/backend/src/server/api/endpoints/messaging/messages/read.ts @@ -34,9 +34,8 @@ export const paramDef = { required: ['messageId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.messagingMessagesRepository) private messagingMessagesRepository: MessagingMessagesRepository, diff --git a/packages/backend/src/server/api/endpoints/notes/cat-timeline.ts b/packages/backend/src/server/api/endpoints/notes/cat-timeline.ts index 07b79d6586..da1b9fd2c4 100644 --- a/packages/backend/src/server/api/endpoints/notes/cat-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/cat-timeline.ts @@ -56,9 +56,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.notesRepository) private notesRepository: NotesRepository, diff --git a/packages/backend/src/server/api/endpoints/notes/events/search.ts b/packages/backend/src/server/api/endpoints/notes/events/search.ts index c315e5a203..713ae85018 100644 --- a/packages/backend/src/server/api/endpoints/notes/events/search.ts +++ b/packages/backend/src/server/api/endpoints/notes/events/search.ts @@ -77,9 +77,8 @@ function notAlphaNumeric(s: string): boolean { return null !== s.match(/[^\w]/); } -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.config) private config: Config, diff --git a/packages/backend/src/server/api/endpoints/notes/media-timeline.ts b/packages/backend/src/server/api/endpoints/notes/media-timeline.ts index 35b8829461..ff9974bbe6 100644 --- a/packages/backend/src/server/api/endpoints/notes/media-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/media-timeline.ts @@ -59,9 +59,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.notesRepository) private notesRepository: NotesRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/create.ts b/packages/backend/src/server/api/endpoints/users/groups/create.ts index 952f5e76d6..48289c3e52 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/create.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/create.ts @@ -42,9 +42,8 @@ export const paramDef = { required: ['name'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/delete.ts b/packages/backend/src/server/api/endpoints/users/groups/delete.ts index 2f91eb18d2..232c920439 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/delete.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/delete.ts @@ -35,9 +35,8 @@ export const paramDef = { required: ['groupId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/invitations/accept.ts b/packages/backend/src/server/api/endpoints/users/groups/invitations/accept.ts index 6edb558809..f0e1ff0746 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/invitations/accept.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/invitations/accept.ts @@ -35,9 +35,8 @@ export const paramDef = { required: ['invitationId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupInvitationsRepository) private userGroupInvitationsRepository: UserGroupInvitationsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/invitations/reject.ts b/packages/backend/src/server/api/endpoints/users/groups/invitations/reject.ts index 898f306a3f..8c51c76e73 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/invitations/reject.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/invitations/reject.ts @@ -33,9 +33,8 @@ export const paramDef = { required: ['invitationId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupInvitationsRepository) private userGroupInvitationsRepository: UserGroupInvitationsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/invite.ts b/packages/backend/src/server/api/endpoints/users/groups/invite.ts index 9a7a4711ca..5bb8c9fbca 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/invite.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/invite.ts @@ -58,9 +58,8 @@ export const paramDef = { required: ['groupId', 'userId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/joined.ts b/packages/backend/src/server/api/endpoints/users/groups/joined.ts index 300620b3d8..fc6f94d891 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/joined.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/joined.ts @@ -36,9 +36,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/leave.ts b/packages/backend/src/server/api/endpoints/users/groups/leave.ts index b729524d04..a0f848d664 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/leave.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/leave.ts @@ -41,9 +41,8 @@ export const paramDef = { required: ['groupId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/owned.ts b/packages/backend/src/server/api/endpoints/users/groups/owned.ts index 6bf7f279a1..e9862eec04 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/owned.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/owned.ts @@ -35,9 +35,8 @@ export const paramDef = { required: [], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/pull.ts b/packages/backend/src/server/api/endpoints/users/groups/pull.ts index 9163d5bff2..aee0a402f3 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/pull.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/pull.ts @@ -49,9 +49,8 @@ export const paramDef = { required: ['groupId', 'userId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/show.ts b/packages/backend/src/server/api/endpoints/users/groups/show.ts index 723e783190..7c4189c1bd 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/show.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/show.ts @@ -42,9 +42,8 @@ export const paramDef = { required: ['groupId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/transfer.ts b/packages/backend/src/server/api/endpoints/users/groups/transfer.ts index 63983bb792..e7c0e46ead 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/transfer.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/transfer.ts @@ -56,9 +56,8 @@ export const paramDef = { required: ['groupId', 'userId'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/groups/update.ts b/packages/backend/src/server/api/endpoints/users/groups/update.ts index 598329c22d..ba26d1a4f8 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/update.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/update.ts @@ -43,9 +43,8 @@ export const paramDef = { required: ['groupId', 'name'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( @Inject(DI.userGroupsRepository) private userGroupsRepository: UserGroupsRepository, diff --git a/packages/backend/src/server/api/endpoints/users/translate.ts b/packages/backend/src/server/api/endpoints/users/translate.ts index ca78cc9d0e..5884023e27 100644 --- a/packages/backend/src/server/api/endpoints/users/translate.ts +++ b/packages/backend/src/server/api/endpoints/users/translate.ts @@ -48,9 +48,8 @@ export const paramDef = { required: ['userId', 'targetLang'], } as const; -// eslint-disable-next-line import/no-default-export @Injectable() -export default class extends Endpoint { +export default class extends Endpoint { // eslint-disable-line import/no-default-export constructor( private getterService: GetterService, private metaService: MetaService,