Skip to content

Commit

Permalink
fix: add user_id to update character
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed Oct 28, 2024
1 parent b53b395 commit f812f3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class CharacterController {
@Put(':id')
async updateCharacter(
@Param('id') id: string,
@Body('user_id') user_id?: Optional<string>,
@Body('gender') gender?: Optional<string>,
@Body('faction') faction?: Optional<string>,
@Body('race') race?: Optional<number>,
Expand All @@ -100,6 +101,7 @@ export class CharacterController {
try {
return await this.service.updateCharacter(
id,
user_id,
gender,
faction,
race,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export class CharacterService {

async updateCharacter(
id: string,
user_id?: Optional<string>,
gender?: Optional<string>,
faction?: Optional<string>,
race?: Optional<number>,
Expand All @@ -112,6 +113,7 @@ export class CharacterService {
): Promise<CharacterDAO> {
const payload = RmqRecordBuilderHelper({
id,
user_id,
gender,
faction,
race,
Expand Down

0 comments on commit f812f3b

Please sign in to comment.