mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Add missing COALESCE when summing visits counts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user