You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
391 B

  1. import { TaskStatusRepository } from '@/domain/models/celery/taskStatusRepository'
  2. import { StatusDTO } from './statusData'
  3. export class TaskStatusApplicationService {
  4. constructor(
  5. private readonly repository: TaskStatusRepository
  6. ) {}
  7. public async get(taskId: string): Promise<StatusDTO> {
  8. const item = await this.repository.get(taskId)
  9. return new StatusDTO(item)
  10. }
  11. }