mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🐛 Fix debug logger not correctly outputting
This commit is contained in:
parent
eab61b38f1
commit
fd38161769
3 changed files with 15 additions and 3 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { debugRequest } from "@api";
|
||||
import {
|
||||
type EntityValidator,
|
||||
SignatureConstructor,
|
||||
|
|
@ -42,5 +43,12 @@ export const objectToInboxRequest = async (
|
|||
body: JSON.stringify(object),
|
||||
});
|
||||
|
||||
return await ctor.sign(request);
|
||||
const signed = await ctor.sign(request);
|
||||
|
||||
if (config.debug.federation) {
|
||||
// Debug request
|
||||
await debugRequest(signed);
|
||||
}
|
||||
|
||||
return signed;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue