MCPcopy Create free account
hub / github.com/gogs/gogs / BeforeUpdate

Method BeforeUpdate

internal/database/webhook.go:458–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

456}
457
458func (t *HookTask) BeforeUpdate() {
459 if t.RequestInfo != nil {
460 t.RequestContent = t.ToJSON(t.RequestInfo)
461 }
462 if t.ResponseInfo != nil {
463 t.ResponseContent = t.ToJSON(t.ResponseInfo)
464 }
465}
466
467func (t *HookTask) AfterSet(colName string, _ xorm.Cell) {
468 var err error

Callers

nothing calls this directly

Calls 1

ToJSONMethod · 0.95

Tested by

no test coverage detected