fix(server): connection aborted logging (#5595)

This commit is contained in:
Jason Rasmussen
2023-12-09 21:46:56 -05:00
committed by GitHub
parent 3a794d7a2b
commit b7b4483a33
3 changed files with 21 additions and 13 deletions

View File

@@ -21,6 +21,8 @@ export type Options = {
each?: boolean;
};
export const isConnectionAborted = (error: Error | any) => error.code === 'ECONNABORTED';
export function ValidateUUID({ optional, each }: Options = { optional: false, each: false }) {
return applyDecorators(
IsUUID('4', { each }),