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

Method SetCompleteByID

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

Source from the content-addressed store, hash-verified

193}
194
195func (c *taskClient) SetCompleteByID(ctx context.Context, taskID int) error {
196 _, err := c.client.Task.UpdateOneID(taskID).
197 SetStatus(task.StatusCompleted).
198 Save(ctx)
199 return err
200}
201
202func (c *taskClient) List(ctx context.Context, args *ListTaskArgs) (*ListTaskResult, error) {
203 q := c.client.Task.Query()

Callers

nothing calls this directly

Calls 3

SetStatusMethod · 0.65
SaveMethod · 0.45
UpdateOneIDMethod · 0.45

Tested by

no test coverage detected