Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed Sep 13, 2024
1 parent 5a415df commit 6b06b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mimir/Repositories/RuneSlotRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ public class RuneSlotRepository(MongoDbService dbService)
{
public async Task<RuneSlotDocument> GetByAddressAsync(Address avatarAddress, BattleType battleType)
{
var itemSlotAddress = Nekoyume.Model.State.RuneSlotState.DeriveAddress(
var runeSlotAddress = Nekoyume.Model.State.RuneSlotState.DeriveAddress(
avatarAddress,
battleType);
var collectionName = CollectionNames.GetCollectionName<RuneSlotDocument>();
var collection = dbService.GetCollection<RuneSlotDocument>(collectionName);
var filter = Builders<RuneSlotDocument>.Filter.Eq("Address", itemSlotAddress.ToHex());
var filter = Builders<RuneSlotDocument>.Filter.Eq("Address", runeSlotAddress.ToHex());
var document = await collection.Find(filter).FirstOrDefaultAsync();
if (document is null)
{
throw new DocumentNotFoundInMongoCollectionException(
collection.CollectionNamespace.CollectionName,
$"'Address' equals to '{itemSlotAddress.ToHex()}'");
$"'Address' equals to '{runeSlotAddress.ToHex()}'");
}

return document;
Expand Down

0 comments on commit 6b06b43

Please sign in to comment.