Add admin info to stats Endpoint

This commit is contained in:
Philipp Holzer 2024-10-21 07:24:24 +02:00
commit 7ca4e6e338
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
4 changed files with 80 additions and 14 deletions

View file

@ -188,6 +188,16 @@ class DBStructure
return $status;
}
/**
* Returns the current status of the Update
*
* @return int
*/
public static function getUpdateStatus(): int
{
return (int)DI::config()->get('system', 'dbupdate') ?? static::UPDATE_NOT_CHECKED;
}
/**
* Updates DB structure from the installation and returns eventual errors messages
*