MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableUpdatedAt

Method SetNillableUpdatedAt

ent/task_create.go:49–54  ·  view source on GitHub ↗

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

47
48// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
49func (tc *TaskCreate) SetNillableUpdatedAt(t *time.Time) *TaskCreate {
50 if t != nil {
51 tc.SetUpdatedAt(*t)
52 }
53 return tc
54}
55
56// SetDeletedAt sets the "deleted_at" field.
57func (tc *TaskCreate) SetDeletedAt(t time.Time) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected