add returns for fallback getdatatable calls

This commit is contained in:
Jonathan Jenne 2021-01-11 11:25:46 +01:00
parent dbbe9cdd62
commit 6eac545959

View File

@ -15,11 +15,11 @@ Public Class ClassDataASorDB
oReturnDT = oTableResult.Table
If IsNothing(oReturnDT) Then
_Logger.Warn($"Datatable from ApPServData is nothing [{pAppServDT} - {pAppServFilter}] - Failover via DB")
GetDatatable(pSQL, "", "", "", "DB")
Return GetDatatable(pSQL, "", "", "", "DB")
End If
Catch ex As Exception
_Logger.Warn($"Error getting ApPServData [{pAppServDT} - {pAppServFilter}]")
GetDatatable(pSQL, "", "", "", "DB")
Return GetDatatable(pSQL, "", "", "", "DB")
End Try
Else
oReturnDT = Database.GetDatatable(pSQL)