mirror of https://github.com/perkeep/perkeep.git
schema: bugfix, store permanode ref as string in claim
Change-Id: I8ed216f268cc458ea2c79943f956034cea60e38d
This commit is contained in:
parent
1c6884aa88
commit
e6f4a75e87
|
@ -681,7 +681,7 @@ func NewClaim(claims ...*ClaimParam) *Builder {
|
|||
func populateClaimMap(m map[string]interface{}, cp *ClaimParam) {
|
||||
m["claimType"] = string(cp.Type)
|
||||
m["attribute"] = cp.Attribute
|
||||
m["permaNode"] = cp.Permanode
|
||||
m["permaNode"] = cp.Permanode.String()
|
||||
if !(cp.Type == DelAttribute && cp.Value == "") {
|
||||
m["value"] = cp.Value
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue