Skip to content

Commit

Permalink
do not save default asset into no-sql table
Browse files Browse the repository at this point in the history
  • Loading branch information
NovichikhinAlexey committed Jan 20, 2021
1 parent 0064219 commit 0cb0360
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/Lykke.Service.Assets.NoSql/Models/AssetNoSql.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ public class AssetNoSql: MyNoSqlDbEntity
{
public const string TableName = "antares.asset.assets";

public const string DefaultAssetPartitioKey = "--default--";
public const string DefaultAssetRowKey = "--default--";

public static string GeneratePartitionKey() => "assets";
public static string GenerateRowKey(string assetId) => assetId;

Expand Down
5 changes: 0 additions & 5 deletions src/Lykke.Service.Assets.Services/AssetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ public void Start()
private IList<AssetNoSql> GetAllData()
{
var data = GetAllAsync(true).GetAwaiter().GetResult().Select(AssetNoSql.Create).ToList();

var defaultAsset = AssetNoSql.Create(CreateDefault());
defaultAsset.PartitionKey = AssetNoSql.DefaultAssetPartitioKey;
defaultAsset.RowKey = AssetNoSql.DefaultAssetRowKey;
data.Add(defaultAsset);
return data;
}
}
Expand Down

0 comments on commit 0cb0360

Please sign in to comment.