mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Add await to GetCountries in LocalizationService
This commit is contained in:
parent
0ef2b46106
commit
fcfe02ee73
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ using MediaBrowser.Controller.Net;
|
|||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Globalization;
|
||||
using MediaBrowser.Model.Services;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Api
|
||||
{
|
||||
|
@ -81,9 +82,9 @@ namespace MediaBrowser.Api
|
|||
/// </summary>
|
||||
/// <param name="request">The request.</param>
|
||||
/// <returns>System.Object.</returns>
|
||||
public object Get(GetCountries request)
|
||||
public async Task<object> Get(GetCountries request)
|
||||
{
|
||||
var result = _localization.GetCountries();
|
||||
var result = await _localization.GetCountries();
|
||||
|
||||
return ToOptimizedResult(result);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue