Skip to content

Commit

Permalink
Fix join for dtt
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Jan 17, 2019
1 parent 296b861 commit 3e502e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions app/Nova/Filters/DuesTransactionTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ class DuesTransactionTeam extends Filter
*/
public function apply(Request $request, $query, $value)
{
return $query->whereExists(function ($query) use ($value) {
$query->select(DB::raw(1))
->from('team_user')
->where('dues_transactions.user_id', '=', 'team_user.user_id')
->where('team_user.team_id', '=', $value);
});
return $query->join('team_user', 'dues_transactions.user_id', 'team_user.user_id')
->where('team_user.team_id', '=', $value);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pre-deploy-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cd "${0%/*}"

php artisan down --message="Application upgrade in progress. Please retry in a few minutes." --retry=60
php artisan down --message="An app upgrade is in progress. Please try again in a few minutes." --retry=60

0 comments on commit 3e502e4

Please sign in to comment.