Only log zod when there's an error
This commit is contained in:
parent
40fab38a4b
commit
3db7bbb476
1 changed files with 0 additions and 1 deletions
|
|
@ -503,7 +503,6 @@ async function _promiseAjax<Type extends ResponseType, OutputShape>(
|
||||||
) {
|
) {
|
||||||
if (options.zodSchema) {
|
if (options.zodSchema) {
|
||||||
result = parseUnknown(options.zodSchema, result);
|
result = parseUnknown(options.zodSchema, result);
|
||||||
log.info(logId, 'Zod schema applied');
|
|
||||||
}
|
}
|
||||||
if (options.validateResponse) {
|
if (options.validateResponse) {
|
||||||
if (!_validateResponse(result, options.validateResponse)) {
|
if (!_validateResponse(result, options.validateResponse)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue