Skip to content

Commit

Permalink
fixed response for count badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 28, 2024
1 parent 7fa51fb commit 4d29326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interceptors/localization.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class LocaleInterceptor implements NestInterceptor {
map(data => {
if (!!contentType && !contentType.toLowerCase().includes('application/json')) return data;
if (data instanceof Array) return data;
if (request.path.includes('badge')) return data;

return { statusCode: response.statusCode, ...data }
}),
Expand Down

0 comments on commit 4d29326

Please sign in to comment.