Fixed testcases run condition

Fixed issue with running testcases
Added file permission check in Probe.php for storage and bootstrap directories.
Named route bugs fixed reported on bugsnag
This commit is contained in:
Manish Verma
2018-09-07 17:40:22 +05:30
committed by Manish Verma
parent fab082a5cc
commit 767ab8e8b7
4 changed files with 57 additions and 26 deletions

View File

@@ -33,7 +33,7 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
if (env('DB_INSTALL') == 1) {
if (isInstall()) {
$this->execute($schedule, 'fetching');
$this->execute($schedule, 'notification');
$this->execute($schedule, 'work');

View File

@@ -310,7 +310,7 @@ class OrganizationController extends Controller
for ($i = $date1; $i <= $date2; $i = $i + 86400) {
$thisDate = date('Y-m-d', $i);
$user_orga_relation_id = '';
$user_orga_relation_id = [];
$user_orga_relations = User_org::where('org_id', '=', $id)->get();
foreach ($user_orga_relations as $user_orga_relation) {
$user_orga_relation_id[] = $user_orga_relation->user_id;