Small fixes.

This commit is contained in:
James Cole 2019-01-03 19:01:32 +01:00
parent 577f024310
commit b245facdfe
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ class CategoryController extends Controller
$spentArray = $repository->spentInPeriodPerCurrency(new Collection([$category]), $accounts, $start, $end);
foreach ($spentArray as $currencyId => $spent) {
if (bccomp($spent, '0') === -1) {
$currencies[$currencyId] = $currencies[$currencyId] ?? $currencyRepository->findNull($currencyId);
$currencies[$currencyId] = $currencies[$currencyId] ?? $currencyRepository->findNull((int)$currencyId);
$tempData[] = [
'name' => $category->name,
'spent' => bcmul($spent, '-1'),

View File

@ -138,7 +138,7 @@ class InstallController extends Controller
}
try {
Log::debug('Am now calling upgrade database routine...');
Artisan::call('firefly:upgrade-database');
Artisan::call('firefly:upgrade-database', ['--force' => true]);
Log::debug(Artisan::output());
} catch (Exception $e) {
Log::error($e->getMessage());
@ -165,7 +165,7 @@ class InstallController extends Controller
}
try {
Log::debug('Am now calling verify database routine...');
Artisan::call('firefly:verify');
Artisan::call('firefly:verify', ['--force' => true]);
Log::debug(Artisan::output());
} catch (Exception $e) {
Log::error($e->getMessage());