Skip to content

Commit ffa11b5

Browse files
committed
Fix problem with editing a slot (#1547)
1 parent 62b63f9 commit ffa11b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JoinRpg.Dal.Impl/Repositories/CharacterRepositoryImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public async Task<CharacterView> GetCharacterViewAsync(int projectId, int charac
8888
UpdatedAt = character.UpdatedAt,
8989
IsActive = character.IsActive,
9090
InGame = character.InGame,
91-
CharacterTypeInfo = new(character.IsAvailable ? CharacterType.Player : CharacterType.NonPlayer, character.IsHot, character.CharacterSlotLimit),
91+
CharacterTypeInfo = new(character.CharacterType, character.IsHot, character.CharacterSlotLimit),
9292
JsonData = character.JsonData,
9393
ApprovedClaim = await Ctx.Set<Claim>()
9494
.Where(claim => claim.CharacterId == characterId &&

0 commit comments

Comments
 (0)