(ctx context.Context, taskID int)
| 187 | } |
| 188 | |
| 189 | func (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 | |
| 195 | func (c *taskClient) SetCompleteByID(ctx context.Context, taskID int) error { |
| 196 | _, err := c.client.Task.UpdateOneID(taskID). |
nothing calls this directly
no test coverage detected