Skip to content

Commit 5782c8f

Browse files
author
Grahame Grieve
committed
missed code
1 parent a05aa0b commit 5782c8f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

server/kernel.pas

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,10 @@ procedure ExecuteFhirServerInner(params : TCommandLineParameters);
876876
if (params.get('cfg', fn)) then
877877
localConfig := TIniFile.Create(fn)
878878
else
879+
begin
879880
localConfig := TIniFile.Create(localDir + 'fhirserver.ini');
881+
fn := '';
882+
end;
880883
try
881884
try
882885
initLogging(params, localConfig);
@@ -887,6 +890,8 @@ procedure ExecuteFhirServerInner(params : TCommandLineParameters);
887890
cfgName := loadRemoteConfig(params, localConfig.readString('config', 'zero', ''), localConfig)
888891
else if localConfig.valueExists('config', 'cfgFile') then
889892
cfgName := localConfig.ReadString('config', 'cfgFile', '')
893+
else if fn.EndsWith('.cfg') then
894+
cfgName := fn
890895
else
891896
cfgName := localDir + 'fhirserver.cfg';
892897
Logging.Log('Actual config: '+cfgName);

server/storage.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ interface
5353
TOperationMode = (opmRestful, opmUpload, opmInternal, opmCmdLine, opmSweep);
5454
TOperationLoggingLevel = (ollNone, ollHuman, ollInstaller);
5555

56+
{ TOperationContext }
57+
5658
TOperationContext = class (TFslObject)
5759
private
60+
FGroupId: String;
5861
FMode : TOperationMode;
5962
FLogging : TOperationLoggingLevel;
6063
FCacheResponse : boolean;
@@ -68,6 +71,7 @@ TOperationContext = class (TFslObject)
6871
property Logging : TOperationLoggingLevel read FLogging write FLogging;
6972
property CacheResponse : boolean read FCacheResponse write FCacheResponse;
7073
property inTransaction : boolean read FInTransaction write FInTransaction;
74+
property groupId : String read FGroupId write FGroupId;
7175
end;
7276

7377
const

0 commit comments

Comments
 (0)