mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:14:41 -04:00
Update BaseAPIController.php
force == comparator
This commit is contained in:
parent
f40d0677b3
commit
62c018835a
@ -99,11 +99,11 @@ class BaseAPIController extends Controller
|
|||||||
|
|
||||||
$query->with($includes);
|
$query->with($includes);
|
||||||
|
|
||||||
if ($updatedAt = intval(Input::get('updated_at'))) {
|
if ($updatedAt == intval(Input::get('updated_at'))) {
|
||||||
$query->where('updated_at', '>=', date('Y-m-d H:i:s', $updatedAt));
|
$query->where('updated_at', '>=', date('Y-m-d H:i:s', $updatedAt));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($clientPublicId = Input::get('client_id')) {
|
if ($clientPublicId == Input::get('client_id')) {
|
||||||
$filter = function ($query) use ($clientPublicId) {
|
$filter = function ($query) use ($clientPublicId) {
|
||||||
$query->where('public_id', '=', $clientPublicId);
|
$query->where('public_id', '=', $clientPublicId);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user