mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Pass right context in call to datastore.UpdateTrigger (#1185)
This commit is contained in:
committed by
Reed Allman
parent
722bdf75b0
commit
6e20cf8788
@@ -31,7 +31,8 @@ func (s *Server) handleTriggerUpdate(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
triggerUpdated, err := s.datastore.UpdateTrigger(c, trigger)
|
||||
ctx := c.Request.Context()
|
||||
triggerUpdated, err := s.datastore.UpdateTrigger(ctx, trigger)
|
||||
if err != nil {
|
||||
handleErrorResponse(c, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user