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

Method GetTaskByID

inventory/task.go:189–193  ·  view source on GitHub ↗
(ctx context.Context, taskID int)

Source from the content-addressed store, hash-verified

187}
188
189func (c *taskClient) GetTaskByID(ctx context.Context, taskID int) (*ent.Task, error) {
190 return withTaskEagerLoading(ctx, c.client.Task.Query()).
191 Where(task.ID(taskID)).
192 First(ctx)
193}
194
195func (c *taskClient) SetCompleteByID(ctx context.Context, taskID int) error {
196 _, err := c.client.Task.UpdateOneID(taskID).

Callers

nothing calls this directly

Calls 5

IDFunction · 0.92
withTaskEagerLoadingFunction · 0.85
FirstMethod · 0.45
WhereMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected