Give correct info about import jobs.

This commit is contained in:
James Cole 2018-01-24 11:08:50 +01:00
parent cb81855a17
commit f42cd0c7c3
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -237,8 +237,8 @@ class UserRepository implements UserRepositoryInterface
->where('budgets.user_id', $user->id)->get(['budget_limits.budget_id'])->count();
$return['export_jobs'] = $user->exportJobs()->count();
$return['export_jobs_success'] = $user->exportJobs()->where('status', 'export_downloaded')->count();
$return['import_jobs'] = $user->exportJobs()->count();
$return['import_jobs_success'] = $user->exportJobs()->where('status', 'import_complete')->count();
$return['import_jobs'] = $user->importJobs()->count();
$return['import_jobs_success'] = $user->importJobs()->where('status', 'finished')->count();
$return['rule_groups'] = $user->ruleGroups()->count();
$return['rules'] = $user->rules()->count();
$return['tags'] = $user->tags()->count();