Skip to content

Commit dcd5959

Browse files
committed
naming
1 parent d9051a8 commit dcd5959

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Elastic.Markdown/Links/CrossLinks/CrossLinkResolver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public record LinkIndexEntry
3838
[JsonPropertyName("etag")]
3939
public required string ETag { get; init; }
4040

41-
[JsonPropertyName("eventTime")]
42-
public DateTime EventTime { get; init; } = DateTime.MinValue;
41+
[JsonPropertyName("updated_at")]
42+
public DateTime UpdatedAt { get; init; } = DateTime.MinValue;
4343

4444
// TODO can be made required after all doc_sets have published again
4545
[JsonPropertyName("ref")]

src/infra/docs-lambda-index-publisher/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ static void UpdateLinkIndex(LinkIndex linkIndex, LinkReference linkReference, S3
134134
Branch = linkReference.Origin.Branch,
135135
ETag = s3Object.ETag,
136136
Path = s3Object.Key,
137-
EventTime = s3EventRecord.EventTime,
137+
UpdatedAt = s3EventRecord.EventTime,
138138
GitReference = linkReference.Origin.Ref
139139
};
140140

141141
if (linkIndex.Repositories.TryGetValue(repository, out var existingEntry))
142142
{
143-
var newEntryIsNewer = DateTime.Compare(newEntry.EventTime, existingEntry[branch].EventTime) > 0;
143+
var newEntryIsNewer = DateTime.Compare(newEntry.UpdatedAt, existingEntry[branch].UpdatedAt) > 0;
144144
if (newEntryIsNewer)
145145
{
146146
existingEntry[branch] = newEntry;

0 commit comments

Comments
 (0)