Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/shared/modules/global/resource.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ export class ResourceApiService {
while (true) {
params.set('page', String(page));

this.logger.log(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ security]
Logging sensitive information such as query.challengeId and query.memberId can pose security risks. Consider removing these from the logs or ensure they are adequately protected.

'Debug resources call:',
params.toString(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[💡 readability]
The params.toString() and JSON.stringify(params) might produce redundant information in the logs. Consider logging only the necessary details to avoid clutter.

JSON.stringify(params),
query.challengeId,
query.memberId,
);

const url = `${CommonConfig.apis.resourceApiUrl}resources?${params.toString()}`;
const response = await firstValueFrom(
this.httpService.get<ResourceInfo[]>(url, {
Expand Down