The actual case:
@Controller("/redditClone/members")
export class RedditcloneMembersController {
/**
* Update the authenticated member's own profile information.
*
* This endpoint allows currently authenticated members to update their profile details including display name, bio text, and avatar URL. The operation operates on the currently logged-in user's profile and requires authentication.
*
* ## Security and Authorization
*
* This endpoint requires valid authentication. Members can only update their own profile information and cannot modify other users' profiles.
*
* ## Profile Fields
*
* - **displayName**: The display name shown in user interface (optional)
* - **bio**: User's bio/profile description text (optional)
* - **avatarUrl**: URL to user's avatar image (optional)
*
* ## Response Information
*
* The response returns the updated member profile with all fields including the automatically maintained timestamps (createdAt, updatedAt, deletedAt).
*
* @param connection
* @param body Profile update information including displayName, bio, and avatarUrl fields
* @x-autobe-authorization-type null
* @x-autobe-authorization-actor null
* @x-autobe-specification Update the authenticated member's profile information from the request body.
* Accept partial profile updates for displayName, bio, and avatarUrl fields.
* Validate request body fields against member schema constraints.
* Update the member record with new values and refresh timestamps.
* Return the updated member profile in the response body.
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
@TypedRoute.Patch()
public async update(
@TypedBody()
body: IRedditCloneMember.IUpdate,
): Promise<IRedditCloneMember> {
try {
return await patchRedditCloneMembers({
body,
});
} catch (error) {
console.log(error);
throw error;
}
}
}
The actual case: