fix(microservices): Remove unnecessary exception filter priority changes

Remove the changes to exception filter handling in RPC exceptions handler
as the current behavior is the intended behavior according to maintainer
feedback.

Signed-off-by: snowykte0426 <snowykte0426@naver.com>
This commit is contained in:
snowykte0426
2025-07-25 22:42:21 +09:00
parent 722d27ad17
commit 7828c68ab3

View File

@@ -37,12 +37,6 @@ export class RpcExceptionsHandler extends BaseRpcExceptionFilter {
exception: T,
host: ArgumentsHost,
): Observable<any> | null {
const filters = this.filters.filter(
filter => filter.exceptionMetatypes?.length === 0,
);
if (filters.length > 0) {
return filters[0].func(exception, host);
}
if (isEmpty(this.filters)) {
return null;
}