@seam-rpc/server 4.3.14 → 4.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115,9 +115,8 @@ export class SeamRouter {
|
|
|
115
115
|
validatedOutput,
|
|
116
116
|
request: req,
|
|
117
117
|
response: res,
|
|
118
|
-
next,
|
|
118
|
+
next: () => { res.status(400).json(errorResult); return next(); },
|
|
119
119
|
});
|
|
120
|
-
res.status(400).json(errorResult);
|
|
121
120
|
return;
|
|
122
121
|
}
|
|
123
122
|
if (output.ok !== true) {
|
|
@@ -130,9 +129,8 @@ export class SeamRouter {
|
|
|
130
129
|
validatedOutput,
|
|
131
130
|
request: req,
|
|
132
131
|
response: res,
|
|
133
|
-
next,
|
|
132
|
+
next: () => { res.status(400).json(output.error); return next(); },
|
|
134
133
|
});
|
|
135
|
-
res.status(400).json(output.error);
|
|
136
134
|
return;
|
|
137
135
|
}
|
|
138
136
|
// Validate output
|