Skip to content

Commit

Permalink
Merge branch 'root-v1.21-and-main' into release/dcs/v1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Jan 18, 2024
2 parents 1082299 + 7b98261 commit 098d442
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/dcs/sb100.go
Expand Up @@ -30,14 +30,14 @@ func GetSBDataFromBlob(blob *git.Blob) (*SBMetadata100, error) {

sb100 := &SBMetadata100{}
if err := json.Unmarshal(buf, sb100); err != nil {
log.Error("ERROR: %v", err)
log.Error("SBMetadata100{} Unmarshal: %v", err)
return nil, err
}

// Now make a generic map of the buffer to store in the database table
sb100.Metadata = map[string]interface{}{}
if err := json.Unmarshal(buf, &sb100.Metadata); err != nil {
log.Error("ERROR: %v", err)
log.Error("sb100 map[string]interface{}{} Unmarshal: %v", err)
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion routers/web/repo/door43metadata.go
Expand Up @@ -29,7 +29,7 @@ func Door43Metadatas(ctx *context.Context) {
OrderBy("is_repo_metadata DESC, ref_type ASC, release_date_unix DESC").
Find(&dms)
if err != nil {
log.Error("ERROR: %v", err)
log.Error("Find(dms): %v", err)
}

ctx.Data["PageIsMetadata"] = true
Expand Down
4 changes: 2 additions & 2 deletions services/convert/catalog.go
Expand Up @@ -39,12 +39,12 @@ func ToIngredient(project map[string]interface{}) *api.Ingredient {
// ToCatalogEntry converts a Door43Metadata to an api.CatalogEntry
func ToCatalogEntry(ctx context.Context, dm *repo.Door43Metadata, perm access_model.Permission) *api.CatalogEntry {
if err := dm.LoadRepo(ctx); err != nil {
log.Error("ToCatalogEntry: dm.LoadAttributes() ERROR: %v", err)
log.Error("dm.LoadAttributes(): %v", err)
return nil
}

if err := dm.Repo.LoadOwner(ctx); err != nil {
log.Error("ToCatalogEntry: dm.Repo.GetOwner() ERROR: %v", err)
log.Error("dm.Repo.GetOwner(): %v", err)
return nil
}

Expand Down

0 comments on commit 098d442

Please sign in to comment.