Add missing COALESCE when summing visits counts

This commit is contained in:
Alejandro Celaya
2024-03-27 09:15:21 +01:00
parent 3d7b1ca799
commit 10e941cea6
4 changed files with 14 additions and 15 deletions

View File

@@ -14,6 +14,11 @@ final readonly class Ordering
{
}
public static function none(): self
{
return new self();
}
/**
* @param array{string|null, string|null} $props
*/
@@ -23,11 +28,6 @@ final readonly class Ordering
return new self($field, $dir ?? self::DEFAULT_DIR);
}
public static function none(): self
{
return new self(null, self::DEFAULT_DIR);
}
public static function fromFieldAsc(string $field): self
{
return new self($field, self::ASC_DIR);