MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / updateHandler

Method updateHandler

service/subscribe/iml.go:289–305  ·  view source on GitHub ↗
(e *subscribe.Apply, t *EditApply)

Source from the content-addressed store, hash-verified

287}
288
289func (i *imlSubscribeApplyService) updateHandler(e *subscribe.Apply, t *EditApply) {
290 if t.Approver != nil {
291 e.Approver = *t.Approver
292 e.ApproveAt = time.Now()
293 }
294 if t.Status != nil {
295 e.Status = *t.Status
296 }
297 if t.Opinion != nil {
298 e.Opinion = *t.Opinion
299 }
300 if t.Applier != nil {
301 e.Applier = *t.Applier
302 e.ApplyAt = time.Now()
303 }
304
305}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected