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

Method RemoveTaskIDs

ent/mutation.go:15996–16004  ·  view source on GitHub ↗

RemoveTaskIDs removes the "tasks" edge to the Task entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

15994
15995// RemoveTaskIDs removes the "tasks" edge to the Task entity by IDs.
15996func (m *UserMutation) RemoveTaskIDs(ids ...int) {
15997 if m.removedtasks == nil {
15998 m.removedtasks = make(map[int]struct{})
15999 }
16000 for i := range ids {
16001 delete(m.tasks, ids[i])
16002 m.removedtasks[ids[i]] = struct{}{}
16003 }
16004}
16005
16006// RemovedTasks returns the removed IDs of the "tasks" edge to the Task entity.
16007func (m *UserMutation) RemovedTasksIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected