Fix last_process related bug in RPC.health

This commit is contained in:
ASU
2023-02-27 12:14:38 +02:00
parent 44b1005077
commit 1d5608d627
7 changed files with 22 additions and 15 deletions

View File

@@ -456,5 +456,5 @@ class SysInfo(BaseModel):
class Health(BaseModel):
last_process: datetime
last_process_ts: int
last_process: Optional[datetime]
last_process_ts: Optional[int]

View File

@@ -346,4 +346,4 @@ def sysinfo():
@router.get('/health', response_model=Health, tags=['info'])
def health(rpc: RPC = Depends(get_rpc)):
return rpc._health()
return rpc.health()