parent
090fc75076
commit
bb927f1668
|
@ -209,12 +209,12 @@ export default async function (
|
||||||
await Blockings.delete(blocking.id);
|
await Blockings.delete(blocking.id);
|
||||||
} else {
|
} else {
|
||||||
// それ以外は単純に例外
|
// それ以外は単純に例外
|
||||||
if (blocking != null)
|
if (blocking)
|
||||||
throw new IdentifiableError(
|
throw new IdentifiableError(
|
||||||
"710e8fb0-b8c3-4922-be49-d5d93d8e6a6e",
|
"710e8fb0-b8c3-4922-be49-d5d93d8e6a6e",
|
||||||
"blocking",
|
"blocking",
|
||||||
);
|
);
|
||||||
if (blocked != null)
|
if (blocked)
|
||||||
throw new IdentifiableError(
|
throw new IdentifiableError(
|
||||||
"3338392a-f764-498d-8855-db939dcf8c48",
|
"3338392a-f764-498d-8855-db939dcf8c48",
|
||||||
"blocked",
|
"blocked",
|
||||||
|
|
|
@ -38,8 +38,8 @@ export default async function (
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (blocking != null) throw new Error("blocking");
|
if (blocking) throw new Error("blocking");
|
||||||
if (blocked != null) throw new Error("blocked");
|
if (blocked) throw new Error("blocked");
|
||||||
|
|
||||||
const followRequest = await FollowRequests.insert({
|
const followRequest = await FollowRequests.insert({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
|
|
Loading…
Reference in New Issue