mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 03:25:48 +00:00
Update add-errors-to-response-schemas.ts
This commit is contained in:
@@ -10,9 +10,6 @@ export const addErrorsToResponseSchemas = fp(async (server) => {
|
|||||||
...DefaultResponseErrorsSchema,
|
...DefaultResponseErrorsSchema,
|
||||||
...routeOptions.schema.response
|
...routeOptions.schema.response
|
||||||
};
|
};
|
||||||
} else {
|
|
||||||
routeOptions.schema = routeOptions.schema || {};
|
|
||||||
routeOptions.schema.response = { ...DefaultResponseErrorsSchema };
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user