Files
cline-multi-mirror/src/core/controller/task/showTaskWithId.ts
T
canvrno ca3cf185cf [PROTOBUS] Move showTaskWithID to protobus (#3283)
* showTaskWithID protobus migration

* replaced ShowTaskWithIdRequest with generic stringRequest

* prettier
2025-05-06 19:21:37 -07:00

18 lines
493 B
TypeScript

import { Controller } from ".."
import { Empty, StringRequest } from "../../../shared/proto/common"
/**
* Shows a task with the specified ID
* @param controller The controller instance
* @param request The request containing the task ID
* @returns Empty response
*/
export async function showTaskWithId(controller: Controller, request: StringRequest): Promise<Empty> {
try {
await controller.showTaskWithId(request.value)
return Empty.create()
} catch (error) {
throw error
}
}