Add admin info to stats Endpoint

This commit is contained in:
Philipp 2024-10-21 07:24:24 +02:00
parent e8ab8a84af
commit 7ca4e6e338
No known key found for this signature in database
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
*