mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix promises not being awaited
This commit is contained in:
parent
b1d7073217
commit
5aeb50b7d5
|
|
@ -273,7 +273,7 @@ export const federateStatus = async (status: StatusWithRelations) => {
|
|||
const response = await fetch(request);
|
||||
|
||||
if (!response.ok) {
|
||||
console.error(response.text());
|
||||
console.error(await response.text());
|
||||
throw new Error(
|
||||
`Failed to federate status ${status.id} to ${user.uri}`,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export const followRequestUser = async (
|
|||
const response = await fetch(request);
|
||||
|
||||
if (!response.ok) {
|
||||
console.error(response.text());
|
||||
console.error(await response.text());
|
||||
throw new Error(
|
||||
`Failed to federate follow request from ${follower.id} to ${followee.uri}`,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
|
|||
const response = await fetch(request);
|
||||
|
||||
if (!response.ok) {
|
||||
console.error(response.text());
|
||||
console.error(await response.text());
|
||||
throw new Error(
|
||||
`Failed to federate follow accept from ${user.id} to ${account.uri}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue