проверка на наличие сотрудника

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2023-06-23 00:07:25 +07:00
parent 6bc337af43
commit 78ec4bb359

View File

@ -170,7 +170,7 @@ function requests(int $amount = 5, int $page = 1): Cursor
$arangodb->session,
[
'query' => sprintf(
"FOR d IN works FILTER d.confirmed != 'да' SORT d.created DESC LIMIT %d, %d RETURN d",
"FOR d IN works FILTER d.worker == null && d.confirmed != 'да' SORT d.created DESC LIMIT %d, %d RETURN d",
$offset,
$amount + $offset
),