1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for initial queries

This commit is contained in:
= 2021-09-10 22:49:57 +10:00
parent 707fe1dfdc
commit c9f940e914

View File

@ -316,7 +316,7 @@ class BaseController extends Controller
}, },
'company.tax_rates'=> function ($query) use ($updated_at, $user) { 'company.tax_rates'=> function ($query) use ($updated_at, $user) {
$query->where('updated_at', '>=', $updated_at); $query->whereNotNull('updated_at');
}, },
'company.vendors'=> function ($query) use ($updated_at, $user) { 'company.vendors'=> function ($query) use ($updated_at, $user) {
$query->where('updated_at', '>=', $updated_at)->with('contacts', 'documents'); $query->where('updated_at', '>=', $updated_at)->with('contacts', 'documents');
@ -329,7 +329,7 @@ class BaseController extends Controller
$query->where('updated_at', '>=', $updated_at); $query->where('updated_at', '>=', $updated_at);
}, },
'company.task_statuses'=> function ($query) use ($updated_at, $user) { 'company.task_statuses'=> function ($query) use ($updated_at, $user) {
$query->where('updated_at', '>=', $updated_at); $query->whereNotNull('updated_at');
}, },
'company.activities'=> function ($query) use($user) { 'company.activities'=> function ($query) use($user) {