[backend] update queries to postgres
This commit is contained in:
+1
@@ -54,6 +54,7 @@ trait PaginationQuery
|
||||
if ($keyset->date !== null) {
|
||||
$qb->addOrderBy($keyset->date, $orderDirection);
|
||||
}
|
||||
|
||||
$qb->addOrderBy($keyset->id, $orderDirection);
|
||||
|
||||
$cursor = PaginationCursor::decode($page->cursor);
|
||||
|
||||
+1
-9
@@ -305,15 +305,7 @@ final readonly class ImportEngine
|
||||
}
|
||||
|
||||
if (is_string($value)) {
|
||||
if (strlen($value) === 16) {
|
||||
$uuid = Uuid::fromBinary($value);
|
||||
|
||||
return method_exists($uuid, 'toString')
|
||||
? $uuid->toString()
|
||||
: $uuid->toRfc4122();
|
||||
}
|
||||
|
||||
return $value;
|
||||
return Uuid::fromBinary($value)->toString();
|
||||
}
|
||||
|
||||
return (string) $value;
|
||||
|
||||
Reference in New Issue
Block a user