Skip to content

Commit

Permalink
fix(fix): Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deo002 committed Apr 4, 2024
1 parent bd53fc6 commit 6003b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/obligations.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func ImportObligations(c *gin.Context) {
md5hash := hex.EncodeToString(hash[:])
ob.Md5 = md5hash

var oldObligation models.Obligation
oldObligation := ob
result := tx.
Where(&models.Obligation{Topic: ob.Topic}).
Or(&models.Obligation{Md5: ob.Md5}).
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ type ObligationImportRequest struct {
ObligationFile string `form:"file"`
}

// Obligation represents an obligation record in the import json file.
// ObligationImport represents an obligation record in the import json file.
type ObligationImport struct {
Topic string `json:"topic" example:"copyleft" validate:"required"` // binding:"required" tag cannot be used as is works only for request body
Type string `json:"type" enums:"obligation,restriction,risk,right" validate:"required"`
Expand Down

0 comments on commit 6003b9d

Please sign in to comment.