Remove call to the validator function
(This will be better handled in a higher layer.)
This commit is contained in:
@@ -41,10 +41,6 @@ func (hts *HTTPTriggerStore) read(m fission.Metadata) (*fission.HTTPTrigger, err
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (hts *HTTPTriggerStore) update(ht *fission.HTTPTrigger) error {
|
func (hts *HTTPTriggerStore) update(ht *fission.HTTPTrigger) error {
|
||||||
err := validateHTTPTrigger(ht)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
ht.Metadata.Uid = uuid.NewV4().String()
|
ht.Metadata.Uid = uuid.NewV4().String()
|
||||||
return hts.resourceStore.update(ht)
|
return hts.resourceStore.update(ht)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user