fix: 🐛 following issues

Closes #9544
This commit is contained in:
ThatOneCalculator 2023-02-04 12:37:20 -08:00
parent 8cdc80b47d
commit 06ee523871
2 changed files with 4 additions and 4 deletions

View File

@ -209,12 +209,12 @@ export default async function (
await Blockings.delete(blocking.id);
} else {
// それ以外は単純に例外
if (blocking != null)
if (blocking)
throw new IdentifiableError(
"710e8fb0-b8c3-4922-be49-d5d93d8e6a6e",
"blocking",
);
if (blocked != null)
if (blocked)
throw new IdentifiableError(
"3338392a-f764-498d-8855-db939dcf8c48",
"blocked",

View File

@ -38,8 +38,8 @@ export default async function (
}),
]);
if (blocking != null) throw new Error("blocking");
if (blocked != null) throw new Error("blocked");
if (blocking) throw new Error("blocking");
if (blocked) throw new Error("blocked");
const followRequest = await FollowRequests.insert({
id: genId(),