Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
grkngrn committed Jan 6, 2023
1 parent eebd24a commit 14c66f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static WorkflowInstanceFeature UseElasticsearch(this WorkflowInstanceFeat
configure += f =>
{
f.Options = options;
f.IndexConfig = indexConfig ?? new Dictionary<string, string>();
f.IndexConfig = indexConfig ?? options.Indices ?? new Dictionary<string, string>();
};

feature.Module.Configure(configure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static ExecutionLogRecordFeature UseElasticsearch(this ExecutionLogRecord
configure += f =>
{
f.Options = options;
f.IndexConfig = indexConfig ?? new Dictionary<string, string>();
f.IndexConfig = indexConfig ?? options.Indices ?? new Dictionary<string, string>();
};

feature.Module.Configure(configure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class ElasticsearchOptions
{
public const string Elasticsearch = "Elasticsearch";

public Dictionary<string, string> Indices { get; set; }
public Dictionary<string, string>? Indices { get; set; }
public string Endpoint { get; set; }
public string Username { get; set; }
public string Password { get; set; }
Expand Down

0 comments on commit 14c66f7

Please sign in to comment.