From 26652949cb1d869747ba4871939ad3fb8d117493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B4=87=E5=B3=B0=20=E6=9C=94=E8=8F=AF?= Date: Mon, 18 Nov 2024 21:12:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20code=20style=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/src/core/UserBlockingService.ts | 18 +++++++++--------- .../src/core/UserReactionBlockingService.ts | 6 +++--- .../endpoints/blocking-reaction-user/create.ts | 18 +++++++++--------- .../endpoints/blocking-reaction-user/delete.ts | 3 +-- .../server/api/endpoints/blocking/create.ts | 18 +++++++++--------- .../server/api/endpoints/blocking/delete.ts | 18 +++++++++--------- 6 files changed, 40 insertions(+), 41 deletions(-) diff --git a/packages/backend/src/core/UserBlockingService.ts b/packages/backend/src/core/UserBlockingService.ts index 9b5c40f267..3de99baf0c 100644 --- a/packages/backend/src/core/UserBlockingService.ts +++ b/packages/backend/src/core/UserBlockingService.ts @@ -3,15 +3,15 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import {Inject, Injectable, OnModuleInit} from '@nestjs/common'; -import {ModuleRef} from '@nestjs/core'; -import {IdService} from '@/core/IdService.js'; -import type {MiUser} from '@/models/User.js'; -import type {MiBlocking} from '@/models/Blocking.js'; -import {MiBlockingType} from '@/models/Blocking.js'; -import {QueueService} from '@/core/QueueService.js'; -import {GlobalEventService} from '@/core/GlobalEventService.js'; -import {DI} from '@/di-symbols.js'; +import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; +import { ModuleRef } from '@nestjs/core'; +import { IdService } from '@/core/IdService.js'; +import type { MiUser } from '@/models/User.js'; +import type { MiBlocking } from '@/models/Blocking.js'; +import { MiBlockingType } from '@/models/Blocking.js'; +import { QueueService } from '@/core/QueueService.js'; +import { GlobalEventService } from '@/core/GlobalEventService.js'; +import { DI } from '@/di-symbols.js'; import type { BlockingsRepository, FollowRequestsRepository, diff --git a/packages/backend/src/core/UserReactionBlockingService.ts b/packages/backend/src/core/UserReactionBlockingService.ts index cf3de8f331..750f77a85a 100644 --- a/packages/backend/src/core/UserReactionBlockingService.ts +++ b/packages/backend/src/core/UserReactionBlockingService.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; +import { Inject, Injectable } from '@nestjs/common'; import { ModuleRef } from '@nestjs/core'; import { IdService } from '@/core/IdService.js'; import type { MiUser } from '@/models/User.js'; @@ -20,8 +20,8 @@ import { UserWebhookService } from '@/core/UserWebhookService.js'; import { bindThis } from '@/decorators.js'; import { CacheService } from '@/core/CacheService.js'; import { UserFollowingService } from '@/core/UserFollowingService.js'; -import {MiBlockingType} from "@/models/Blocking.js"; -import {UserBlockingService} from "@/core/UserBlockingService.js"; +import { MiBlockingType } from '@/models/Blocking.js'; +import { UserBlockingService } from '@/core/UserBlockingService.js'; @Injectable() export class UserReactionBlockingService { diff --git a/packages/backend/src/server/api/endpoints/blocking-reaction-user/create.ts b/packages/backend/src/server/api/endpoints/blocking-reaction-user/create.ts index 0df2acd69c..d9ec2f0503 100644 --- a/packages/backend/src/server/api/endpoints/blocking-reaction-user/create.ts +++ b/packages/backend/src/server/api/endpoints/blocking-reaction-user/create.ts @@ -4,15 +4,15 @@ */ import ms from 'ms'; -import {Inject, Injectable} from '@nestjs/common'; -import {Endpoint} from '@/server/api/endpoint-base.js'; -import type {BlockingsRepository, UsersRepository} from '@/models/_.js'; -import {MiBlockingType} from "@/models/_.js"; -import {UserEntityService} from '@/core/entities/UserEntityService.js'; -import {DI} from '@/di-symbols.js'; -import {GetterService} from '@/server/api/GetterService.js'; -import {ApiError} from '../../error.js'; -import {UserReactionBlockingService} from '@/core/UserReactionBlockingService.js'; +import { Inject, Injectable } from '@nestjs/common'; +import { Endpoint } from '@/server/api/endpoint-base.js'; +import type { BlockingsRepository, UsersRepository } from '@/models/_.js'; +import { MiBlockingType } from '@/models/_.js'; +import { UserEntityService } from '@/core/entities/UserEntityService.js'; +import { DI } from '@/di-symbols.js'; +import { GetterService } from '@/server/api/GetterService.js'; +import { UserReactionBlockingService } from '@/core/UserReactionBlockingService.js'; +import { ApiError } from '../../error.js'; export const meta = { tags: ['account'], diff --git a/packages/backend/src/server/api/endpoints/blocking-reaction-user/delete.ts b/packages/backend/src/server/api/endpoints/blocking-reaction-user/delete.ts index 393d05f900..c608fa486d 100644 --- a/packages/backend/src/server/api/endpoints/blocking-reaction-user/delete.ts +++ b/packages/backend/src/server/api/endpoints/blocking-reaction-user/delete.ts @@ -6,13 +6,12 @@ import ms from 'ms'; import { Inject, Injectable } from '@nestjs/common'; import { Endpoint } from '@/server/api/endpoint-base.js'; -import type { UsersRepository, BlockingsRepository } from '@/models/_.js'; +import type { UsersRepository, BlockingsRepository, MiBlockingType } from '@/models/_.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { UserReactionBlockingService } from '@/core/UserReactionBlockingService.js'; import { DI } from '@/di-symbols.js'; import { GetterService } from '@/server/api/GetterService.js'; import { ApiError } from '../../error.js'; -import {MiBlockingType} from "@/models/_.js"; export const meta = { tags: ['account'], diff --git a/packages/backend/src/server/api/endpoints/blocking/create.ts b/packages/backend/src/server/api/endpoints/blocking/create.ts index b9adbb2deb..06dae5177c 100644 --- a/packages/backend/src/server/api/endpoints/blocking/create.ts +++ b/packages/backend/src/server/api/endpoints/blocking/create.ts @@ -4,15 +4,15 @@ */ import ms from 'ms'; -import {Inject, Injectable} from '@nestjs/common'; -import {Endpoint} from '@/server/api/endpoint-base.js'; -import type {BlockingsRepository, UsersRepository} from '@/models/_.js'; -import {MiBlockingType} from "@/models/_.js"; -import {UserEntityService} from '@/core/entities/UserEntityService.js'; -import {UserBlockingService} from '@/core/UserBlockingService.js'; -import {DI} from '@/di-symbols.js'; -import {GetterService} from '@/server/api/GetterService.js'; -import {ApiError} from '../../error.js'; +import { Inject, Injectable } from '@nestjs/common'; +import { Endpoint } from '@/server/api/endpoint-base.js'; +import type { BlockingsRepository, UsersRepository } from '@/models/_.js'; +import { MiBlockingType } from '@/models/_.js'; +import { UserEntityService } from '@/core/entities/UserEntityService.js'; +import { UserBlockingService } from '@/core/UserBlockingService.js'; +import { DI } from '@/di-symbols.js'; +import { GetterService } from '@/server/api/GetterService.js'; +import { ApiError } from '../../error.js'; export const meta = { tags: ['account'], diff --git a/packages/backend/src/server/api/endpoints/blocking/delete.ts b/packages/backend/src/server/api/endpoints/blocking/delete.ts index e035cb9823..1608329f8b 100644 --- a/packages/backend/src/server/api/endpoints/blocking/delete.ts +++ b/packages/backend/src/server/api/endpoints/blocking/delete.ts @@ -4,15 +4,15 @@ */ import ms from 'ms'; -import {Inject, Injectable} from '@nestjs/common'; -import {Endpoint} from '@/server/api/endpoint-base.js'; -import type {BlockingsRepository, UsersRepository} from '@/models/_.js'; -import {MiBlockingType} from "@/models/_.js"; -import {UserEntityService} from '@/core/entities/UserEntityService.js'; -import {UserBlockingService} from '@/core/UserBlockingService.js'; -import {DI} from '@/di-symbols.js'; -import {GetterService} from '@/server/api/GetterService.js'; -import {ApiError} from '../../error.js'; +import { Inject, Injectable } from '@nestjs/common'; +import { Endpoint } from '@/server/api/endpoint-base.js'; +import type { BlockingsRepository, UsersRepository } from '@/models/_.js'; +import { MiBlockingType } from '@/models/_.js'; +import { UserEntityService } from '@/core/entities/UserEntityService.js'; +import { UserBlockingService } from '@/core/UserBlockingService.js'; +import { DI } from '@/di-symbols.js'; +import { GetterService } from '@/server/api/GetterService.js'; +import { ApiError } from '../../error.js'; export const meta = { tags: ['account'],