mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
fix(jobs): be less strict about data types
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
5efa292412
commit
ebc128af73
2 changed files with 3 additions and 3 deletions
|
|
@ -72,9 +72,9 @@ final readonly class JobRuns implements IJobRuns {
|
|||
$row['run_id'],
|
||||
$this->classesRegistry->getName($row['class_id']),
|
||||
$snowflakeInfo->getServerId(),
|
||||
$row['pid'],
|
||||
(int)$row['pid'],
|
||||
$snowflakeInfo->getCreatedAt(),
|
||||
JobStatus::from($row['status']),
|
||||
JobStatus::from((int)$row['status']),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ final readonly class JobRun {
|
|||
*/
|
||||
public function __construct(
|
||||
/** Run ID (Snowflake ID) */
|
||||
public int $runId,
|
||||
public int|string $runId,
|
||||
/** Class name */
|
||||
public string $className,
|
||||
/** Server ID */
|
||||
|
|
|
|||
Loading…
Reference in a new issue