Skip to content

Commit

Permalink
Merge pull request #31 from danielbehrendt/master
Browse files Browse the repository at this point in the history
Fixed ambiguous column.
  • Loading branch information
richan-fongdasen authored Nov 1, 2020
2 parents 18b3ebb + 5851a71 commit d046db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlameableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function buildBlameableScope(Builder $query, $userId, $key): Builder
$userId = $userId->getKey();
}

return $query->where(app(BlameableService::class)->getConfiguration($this, $key), $userId);
return $query->where($this->getTable().'.'.app(BlameableService::class)->getConfiguration($this, $key), $userId);
}

/**
Expand Down

0 comments on commit d046db3

Please sign in to comment.