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

Commit

Permalink
handle source empty updated at (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Ayman <[email protected]>

Signed-off-by: Ayman <[email protected]>
Co-authored-by: Ayman <[email protected]>
  • Loading branch information
khalifapro and enkhalifapro authored Jan 19, 2023
1 parent 05590bf commit d9aeaae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -7783,10 +7783,12 @@ func (j *DSGitHub) GetModelDataRepository(ctx *shared.Ctx, docs []interface{}) (
},
},
SourceCreatedAt: int64(createdAt),
SourceUpdatedAt: int64(updatedAt),
CreatedAt: tCreatedAt,
UpdatedAt: time.Now(),
}
if sUpdatedAt != "" {
repo.SourceUpdatedAt = int64(updatedAt)
}
data = append(data, repository.RepositoryUpdatedEvent{
RepositoryBaseEvent: repositoryBaseEvent,
BaseEvent: baseEvent,
Expand Down

0 comments on commit d9aeaae

Please sign in to comment.