@@ -2793,7 +2793,7 @@ public async Task<GenericFileViewModel> GetGenericFileDetailsByIdAsync(int resou
27932793 var vm = this . mapper . Map < GenericFileViewModel > ( genericFile ) ;
27942794
27952795 // User id is used to populate a field we aren't going to use, so we can just pass in the system user id.
2796- var externalContentDetails = this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , 4 ) ;
2796+ var externalContentDetails = await this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , 4 ) ;
27972797 if ( ! string . IsNullOrEmpty ( externalContentDetails ? . ExternalReference ) )
27982798 {
27992799 vm . HostedContentUrl = $ "{ this . settings . LearningHubContentServerUrl } /{ externalContentDetails . ExternalReference } /". ToLower ( ) ;
@@ -2814,7 +2814,7 @@ public async Task<HtmlResourceViewModel> GetHtmlDetailsByIdAsync(int resourceVer
28142814 var vm = this . mapper . Map < HtmlResourceViewModel > ( htmlFile ) ;
28152815
28162816 // User id is used to populate a field we aren't going to use, so we can just pass in the system user id.
2817- var externalContentDetails = this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , 4 ) ;
2817+ var externalContentDetails = await this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , 4 ) ;
28182818 if ( ! string . IsNullOrEmpty ( externalContentDetails ? . ExternalReference ) )
28192819 {
28202820 vm . HostedContentUrl = $ "{ this . settings . LearningHubContentServerUrl } /{ externalContentDetails . ExternalReference } /". ToLower ( ) ;
@@ -2835,7 +2835,7 @@ public async Task<ScormViewModel> GetScormDetailsByIdAsync(int resourceVersionId
28352835 var vm = this . mapper . Map < ScormViewModel > ( scorm ) ;
28362836
28372837 // User id is used to populate a field we aren't going to use, so we can just pass in the system user id.
2838- var externalContentDetails = this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , 4 ) ;
2838+ var externalContentDetails = await this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , 4 ) ;
28392839 if ( ! string . IsNullOrEmpty ( externalContentDetails ? . ExternalReference ) )
28402840 {
28412841 vm . HostedContentUrl = $ "{ this . settings . LearningHubContentServerUrl } /{ externalContentDetails . ExternalReference } /". ToLower ( ) ;
@@ -2851,9 +2851,9 @@ public async Task<ScormViewModel> GetScormDetailsByIdAsync(int resourceVersionId
28512851 /// <param name="resourceVersionId">The resourceVersionId<see cref="int"/>.</param>
28522852 /// <param name="userId">userId.</param>
28532853 /// <returns>The <see cref="Task{ExternalContentDetailsViewModel}"/>.</returns>
2854- public ExternalContentDetailsViewModel GetExternalContentDetails ( int resourceVersionId , int userId )
2854+ public async Task < ExternalContentDetailsViewModel > GetExternalContentDetails ( int resourceVersionId , int userId )
28552855 {
2856- var viewModel = this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , userId ) ;
2856+ var viewModel = await this . resourceVersionRepository . GetExternalContentDetails ( resourceVersionId , userId ) ;
28572857 if ( viewModel != null )
28582858 {
28592859 viewModel . HostedContentUrl = $ "{ this . settings . LearningHubContentServerUrl } /{ viewModel . ExternalReference } /". ToLower ( ) ;
0 commit comments