Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit d9aeaae

Browse files
handle source empty updated at (#68)
Signed-off-by: Ayman <[email protected]> Signed-off-by: Ayman <[email protected]> Co-authored-by: Ayman <[email protected]>
1 parent 05590bf commit d9aeaae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/github/github.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7783,10 +7783,12 @@ func (j *DSGitHub) GetModelDataRepository(ctx *shared.Ctx, docs []interface{}) (
77837783
},
77847784
},
77857785
SourceCreatedAt: int64(createdAt),
7786-
SourceUpdatedAt: int64(updatedAt),
77877786
CreatedAt: tCreatedAt,
77887787
UpdatedAt: time.Now(),
77897788
}
7789+
if sUpdatedAt != "" {
7790+
repo.SourceUpdatedAt = int64(updatedAt)
7791+
}
77907792
data = append(data, repository.RepositoryUpdatedEvent{
77917793
RepositoryBaseEvent: repositoryBaseEvent,
77927794
BaseEvent: baseEvent,

0 commit comments

Comments
 (0)