Skip to content

Commit efdff6e

Browse files
authored
Fix json field for value (camptocamp#41)
This was broken by 885a421
1 parent 04aefbe commit efdff6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/db.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ type Attribute struct {
5353
ID uint `sql:"AUTO_INCREMENT" gorm:"primary_key" json:"-"`
5454
ResourceID sql.NullInt64 `gorm:"index" json:"-"`
5555
Key string `gorm:"index" json:"key"`
56-
Value string
56+
Value string `json:"value"`
5757
}

0 commit comments

Comments
 (0)