convex-helpers 0.1.74 → 0.1.75
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/package.json +1 -1
- package/server/zod.js +1 -1
- package/server/zod.ts +1 -1
package/package.json
CHANGED
package/server/zod.js
CHANGED
|
@@ -244,7 +244,7 @@ function customFnBuilder(builder, mod) {
|
|
|
244
244
|
if (returns) {
|
|
245
245
|
// We don't catch the error here. It's a developer error and we
|
|
246
246
|
// don't want to risk exposing the unexpected value to the client.
|
|
247
|
-
return returns.parse(handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }));
|
|
247
|
+
return returns.parse(await handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }));
|
|
248
248
|
}
|
|
249
249
|
return handler({ ...ctx, ...added.ctx }, { ...args, ...added.args });
|
|
250
250
|
},
|
package/server/zod.ts
CHANGED
|
@@ -377,7 +377,7 @@ function customFnBuilder(
|
|
|
377
377
|
// We don't catch the error here. It's a developer error and we
|
|
378
378
|
// don't want to risk exposing the unexpected value to the client.
|
|
379
379
|
return returns.parse(
|
|
380
|
-
handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }),
|
|
380
|
+
await handler({ ...ctx, ...added.ctx }, { ...args, ...added.args }),
|
|
381
381
|
);
|
|
382
382
|
}
|
|
383
383
|
return handler({ ...ctx, ...added.ctx }, { ...args, ...added.args });
|