Skip to content

Commit

Permalink
Optimized debug handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihaase committed Nov 7, 2023
1 parent c077018 commit 62441ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/common/interceptors/check-security.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class CheckSecurityInterceptor implements NestInterceptor {
const response = item.securityCheck(user, force);
new Promise(() => {
if (itemJson !== JSON.stringify(response)) {
const id = getStringIds(data);
console.debug('CheckSecurityInterceptor: securityCheck changed item of type', data.constructor.name, id && !Array.isArray(id) ? `with ID: ${id}` : '');
const id = getStringIds(item);
console.debug('CheckSecurityInterceptor: securityCheck changed item of type', item.constructor.name, id && !Array.isArray(id) ? `with ID: ${id}` : '');
}
});
return response;
Expand Down

0 comments on commit 62441ef

Please sign in to comment.