MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / defaults

Method defaults

ent/nodeversion_update.go:748–753  ·  view source on GitHub ↗

defaults sets the default values of the builder before save.

()

Source from the content-addressed store, hash-verified

746
747// defaults sets the default values of the builder before save.
748func (nvuo *NodeVersionUpdateOne) defaults() {
749 if _, ok := nvuo.mutation.UpdateTime(); !ok {
750 v := nodeversion.UpdateDefaultUpdateTime()
751 nvuo.mutation.SetUpdateTime(v)
752 }
753}
754
755// check runs all checks and user-defined validators on the builder.
756func (nvuo *NodeVersionUpdateOne) check() error {

Callers 1

SaveMethod · 0.95

Calls 2

UpdateTimeMethod · 0.45
SetUpdateTimeMethod · 0.45

Tested by

no test coverage detected