@punks/backend-entity-manager 0.0.70 → 0.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -20395,19 +20395,18 @@ class NestTypeOrmEntitySeeder extends TypeOrmEntitySeeder {
20395
20395
 
20396
20396
  class AppExceptionsFilterBase {
20397
20397
  catch(exception, host) {
20398
- if (exception instanceof HttpException) {
20399
- return;
20400
- }
20401
20398
  const ctx = host.switchToHttp();
20402
20399
  const response = ctx.getResponse();
20403
20400
  const request = ctx.getRequest();
20404
- this.logError({
20405
- exception,
20406
- request,
20407
- response,
20408
- }).catch((error) => {
20409
- Log.getLogger("AllExceptionsFilter").error("Error logging failed", error);
20410
- });
20401
+ if (!(exception instanceof HttpException)) {
20402
+ this.logError({
20403
+ exception,
20404
+ request,
20405
+ response,
20406
+ }).catch((error) => {
20407
+ Log.getLogger("AllExceptionsFilter").error("Error logging failed", error);
20408
+ });
20409
+ }
20411
20410
  const status = this.getErrorStatusCode(exception);
20412
20411
  response.status(status).json({
20413
20412
  statusCode: status,