Skip to content

Commit

Permalink
Fix logging server lookup logic (#1629)
Browse files Browse the repository at this point in the history
Co-authored-by: James A Sutherland <>
  • Loading branch information
jas88 authored Sep 20, 2023
1 parent 2a9be02 commit 910c827
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Rdmp.Core/Curation/Data/Catalogue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,17 +519,10 @@ public int? LoadMetadata_ID

/// <inheritdoc/>
[NoMappingToDatabase]
public ExternalDatabaseServer LiveLoggingServer {
get{
if(LiveLoggingServer_ID != null){
ExternalDatabaseServer[] dbs = Repository.GetAllObjectsWhere<ExternalDatabaseServer>("id",(int)LiveLoggingServer_ID);
if(dbs.Length > 0){
return dbs.First();
}
}
return null;
}
}
public ExternalDatabaseServer LiveLoggingServer =>
LiveLoggingServer_ID == null
? null
: Repository.GetObjectByID<ExternalDatabaseServer>((int)LiveLoggingServer_ID);

/// <inheritdoc/>
[NoMappingToDatabase]
Expand Down

0 comments on commit 910c827

Please sign in to comment.