mr feedback

This commit is contained in:
Jorrin 2024-01-25 19:25:56 +01:00
parent 4202bf8ef3
commit f9a70b196b

View File

@ -74,10 +74,8 @@ export function makeExtensionFetcher() {
url,
...opsWithoutBody,
...(ops.body && {
body: {
bodyType: getBodyTypeFromBody(ops.body),
value: convertBodyToObject(ops.body),
},
body: convertBodyToObject(ops.body),
bodyType: getBodyTypeFromBody(ops.body),
}),
});
if (!result?.success) throw new Error(`extension error: ${result?.error}`);