Skip to content

140 change api html templates of verification#146

Merged
JonayKB merged 2 commits into
mainfrom
140-change-api-html-templates-of-verification
May 15, 2025
Merged

140 change api html templates of verification#146
JonayKB merged 2 commits into
mainfrom
140-change-api-html-templates-of-verification

Conversation

@JonayKB
Copy link
Copy Markdown
Owner

@JonayKB JonayKB commented May 15, 2025

No description provided.

@JonayKB JonayKB requested a review from Copilot May 15, 2025 19:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the API HTML templates for verification by adding a null check to the comments mapping function to improve stability.

  • Adds a null check in the mapCommentsToComments method
  • Returns an empty list when the input commentsEntities is null
Comments suppressed due to low confidence (1)

API/src/main/java/es/iespuertodelacruz/routinefights/post/infrastructure/adapters/secondary/mappers/PostEntityMapper.java:27

  • [nitpick] Consider whether returning an immutable empty list using List.of() is the intended behavior; if downstream consumers expect a modifiable list, using new ArrayList<>() might be more appropriate.
if (commentsEntities == null) {

@JonayKB JonayKB merged commit d080289 into main May 15, 2025
1 check passed
JonayKB added a commit that referenced this pull request Jan 24, 2026
…-verification

140 change api html templates of verification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants