Commit 507f719b authored by Vivek Naik's avatar Vivek Naik
Browse files

changed default initial value of index value

parent ca89ca29
Branches
Tags
2 merge requests!169Mep release 060320,!167fdb fixes
Showing with 68 additions and 68 deletions
This diff is collapsed.
......@@ -97,7 +97,7 @@ func (i *Index) GetEntryByPath(path string) (string, error) {
}
func (i *Index) AddEntry(path string, rs *gjson.Result) error {
json := `{}`
json := rs.String()
for _, indexField := range i.IndexFields {
if rs.Get(indexField.Query).Value() == nil {
return errormdl.Wrap("please provide value for index field: " + indexField.Query)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment