Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Fixed async warning
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanNedelcu committed Jul 6, 2022
1 parent db38fbe commit e954a43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Application/JobStatuses/Queries/GetJobStatusQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public GetJobStatusQueryHandler(IJobService jobService)
_jobService = jobService;
}

public async Task<ChannelJobStatusItem> Handle(GetJobStatusQuery request, CancellationToken cancellationToken)
public Task<ChannelJobStatusItem> Handle(GetJobStatusQuery request, CancellationToken cancellationToken)
{
var job = _jobService.GetJob(request.ChannelId.ToString());

return new ChannelJobStatusItem
return Task.FromResult(new ChannelJobStatusItem
{
ChannelId = request.ChannelId,
Status = job?.Status ?? JobStatus.Dead,
};
});
}
}

0 comments on commit e954a43

Please sign in to comment.