mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
fix(server): connection aborted logging (#5595)
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user