1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-16 15:21:33 +00:00

Fix 204 on DELETE

This commit is contained in:
Darren Shepherd
2018-04-09 16:33:08 -07:00
parent 9846d7349c
commit 7218407a4e
2 changed files with 7 additions and 3 deletions

View File

@@ -107,5 +107,9 @@ func (s *Store) Update(apiContext *types.APIContext, schema *types.Schema, data
}
func (s *Store) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error) {
return s.Store.Delete(apiContext, schema, id)
obj, err := s.Store.Delete(apiContext, schema, id)
if err != nil || obj == nil {
return obj, err
}
return s.Transformer(apiContext, schema, obj, nil)
}