14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
![]() |
import { Result } from "../../../core/helper/result";
|
||
|
import { IPipelineMeta } from "../../../core/model/pipeline_meta";
|
||
|
import { pipelineRealTimeService } from "../realtime_presentation";
|
||
|
|
||
|
export class PipelineStatusUseCase {
|
||
|
async call(): Promise<Result<Error, IPipelineMeta>> {
|
||
|
try {
|
||
|
return Result.ok(pipelineRealTimeService.status);
|
||
|
} catch (error) {
|
||
|
return Result.error(error as Error);
|
||
|
}
|
||
|
}
|
||
|
}
|