Skip to content

Commit

Permalink
Merge pull request #63 from meili-NG/Baw-Appie-patch-1
Browse files Browse the repository at this point in the history
Add username to UserUpdateRequestBody
  • Loading branch information
Alex4386 authored Jan 15, 2025
2 parents 1dde7c7 + 813abd5 commit ed2c315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/v1/meiling/users/actions/info/put.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface UserUpdateRequestBody {
givenName?: string;
middleName?: string | null;
name?: string;
username?: string;
}

export async function userUpdateInfo(req: FastifyRequest, rep: FastifyReply) {
Expand Down Expand Up @@ -57,6 +58,7 @@ export async function userUpdateInfo(req: FastifyRequest, rep: FastifyReply) {
givenName: Utils.isNotBlank(body.givenName) ? body.givenName : undefined,
middleName: Utils.isNotBlank(body.middleName) ? body.middleName?.normalize('NFC') : undefined,
name: Utils.isNotBlank(body.name) ? body.name : undefined,
username: Utils.isNotBlank(body.username) ? body.username : undefined,
},
});

Expand Down

0 comments on commit ed2c315

Please sign in to comment.