Skip to content

Commit

Permalink
Merge pull request #12 from diegodelrieu/fix/subscriptions
Browse files Browse the repository at this point in the history
fix: revert
  • Loading branch information
janek26 authored Apr 24, 2024
2 parents b0b58d2 + 490884c commit 7ca8286
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions src/adapter/chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ export const createChromeHandler = <TRouter extends AnyRouter>(

sendResponse({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
error: transformer.output.serialize(
getErrorShape({
config: router._def._config,
error,
type: method,
path: params.path,
input: params.input,
ctx,
}),
),
error: getErrorShape({
config: router._def._config,
error,
type: method,
path: params.path,
input: params.input,
ctx,
}),
});
};

Expand Down
18 changes: 8 additions & 10 deletions src/adapter/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ export const createWindowHandler = <TRouter extends AnyRouter>(

sendResponse({
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
error: transformer.output.serialize(
getErrorShape({
config: router._def._config,
error,
type: method,
path: params.path,
input: params.input,
ctx,
}),
),
error: getErrorShape({
config: router._def._config,
error,
type: method,
path: params.path,
input: params.input,
ctx,
}),
});
};

Expand Down

0 comments on commit 7ca8286

Please sign in to comment.