проверка на наличие сотрудника
This commit is contained in:
parent
6bc337af43
commit
78ec4bb359
|
@ -170,7 +170,7 @@ function requests(int $amount = 5, int $page = 1): Cursor
|
||||||
$arangodb->session,
|
$arangodb->session,
|
||||||
[
|
[
|
||||||
'query' => sprintf(
|
'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,
|
$offset,
|
||||||
$amount + $offset
|
$amount + $offset
|
||||||
),
|
),
|
||||||
|
|
Reference in New Issue