From 579a8794bd8e637ba1a9275e92cdde06f71afbd3 Mon Sep 17 00:00:00 2001 From: Dan Gershony Date: Mon, 16 Dec 2024 10:53:53 +0000 Subject: [PATCH] fix typo (#222) --- src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs | 4 ++-- src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs | 2 +- .../Sync/SyncTasks/ProjectsSyncRunner.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs b/src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs index 36a24b6..3e32e39 100644 --- a/src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs +++ b/src/Blockcore.Indexer.Angor/Storage/Mongo/AngorMongoData.cs @@ -42,7 +42,7 @@ public AngorMongoData(ILogger dbLogger, SyncConnection connection, return new ProjectIndexerData { FounderKey = project.FounderKey, - NostrEventId = project.NosrtEventId, + NostrEventId = project.NostrEventId, ProjectIdentifier = project.AngorKey, TrxId = project.TransactionId, TotalInvestmentsCount = total, @@ -236,7 +236,7 @@ public async Task> GetProjectsAsync(int? offset, Items = projects.Select(_ => new ProjectIndexerData { FounderKey = _.FounderKey, - NostrEventId =_.NosrtEventId, + NostrEventId =_.NostrEventId, ProjectIdentifier = _.AngorKey, TrxId = _.TransactionId, CreatedOnBlock = _.BlockIndex diff --git a/src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs b/src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs index 8cb908c..015b525 100644 --- a/src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs +++ b/src/Blockcore.Indexer.Angor/Storage/Mongo/Types/Project.cs @@ -5,7 +5,7 @@ public class Project public string AngorKey { get; set; } public string FounderKey { get; set; } - public string NosrtEventId { get; set; } + public string NostrEventId { get; set; } public string AngorKeyScriptHex { get; set; } public long BlockIndex { get; set; } public string TransactionId { get; set; } //TODO check if this should be a lookup diff --git a/src/Blockcore.Indexer.Angor/Sync/SyncTasks/ProjectsSyncRunner.cs b/src/Blockcore.Indexer.Angor/Sync/SyncTasks/ProjectsSyncRunner.cs index 1f1604f..c6dda61 100644 --- a/src/Blockcore.Indexer.Angor/Sync/SyncTasks/ProjectsSyncRunner.cs +++ b/src/Blockcore.Indexer.Angor/Sync/SyncTasks/ProjectsSyncRunner.cs @@ -140,7 +140,7 @@ public override async Task OnExecute() AngorKeyScriptHex = angorKey.WitHash.ScriptPubKey.ToHex(), BlockIndex = output.BlockIndex, FounderKey = parsedData.FounderPubKey.ToHex(), - NosrtEventId = parsedData.keyType == 1 ? parsedData.NostrEventId : string.Empty, + NostrEventId = parsedData.keyType == 1 ? parsedData.NostrEventId : string.Empty, AddressOnFeeOutput = angorFeeOutput.Address }; }