Skip to content

Commit

Permalink
handling nil keywords update
Browse files Browse the repository at this point in the history
  • Loading branch information
bpathak-ons committed Jan 14, 2022
1 parent ad148eb commit f70fe58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ func (h *ContentPublishedHandler) Handle(ctx context.Context, cpEvent *models.Co
datasetDetailsData := models.DatasetDetails{
Title: datasetMetadataPublished.Title,
Description: datasetMetadataPublished.Description,
Keywords: *datasetMetadataPublished.Keywords,
}

if datasetMetadataPublished.Keywords != nil {
datasetDetailsData.Keywords = *datasetMetadataPublished.Keywords
}

versionMetadata := models.CMDData{
Expand Down

0 comments on commit f70fe58

Please sign in to comment.