From 41c87074e68786347092aa541297fa90d2334053 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 25 Mar 2022 16:35:24 +0900 Subject: [PATCH] .js --- packages/backend/src/services/suspend-user.ts | 2 +- packages/backend/src/services/unsuspend-user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/services/suspend-user.ts b/packages/backend/src/services/suspend-user.ts index 57999763cc..e96b06a351 100644 --- a/packages/backend/src/services/suspend-user.ts +++ b/packages/backend/src/services/suspend-user.ts @@ -5,7 +5,7 @@ import config from '@/config/index.js'; import { User } from '@/models/entities/user.js'; import { Users, Followings } from '@/models/index.js'; import { Not, IsNull } from 'typeorm'; -import { publishInternalEvent } from './stream'; +import { publishInternalEvent } from '@/services/stream.js'; export async function doPostSuspend(user: { id: User['id']; host: User['host'] }) { publishInternalEvent('userChangeSuspendedState', { id: user.id, isSuspended: true }); diff --git a/packages/backend/src/services/unsuspend-user.ts b/packages/backend/src/services/unsuspend-user.ts index b1f0284ac3..44a0d01ca2 100644 --- a/packages/backend/src/services/unsuspend-user.ts +++ b/packages/backend/src/services/unsuspend-user.ts @@ -6,7 +6,7 @@ import config from '@/config/index.js'; import { User } from '@/models/entities/user.js'; import { Users, Followings } from '@/models/index.js'; import { Not, IsNull } from 'typeorm'; -import { publishInternalEvent } from './stream'; +import { publishInternalEvent } from '@/services/stream.js'; export async function doPostUnsuspend(user: User) { publishInternalEvent('userChangeSuspendedState', { id: user.id, isSuspended: false });