Add pgsql fixes

This commit is contained in:
Daniel Supernault 2019-02-12 19:06:03 -07:00
parent 41007298a2
commit 3ac9a05632
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 16 additions and 14 deletions

View file

@ -43,7 +43,8 @@ trait AdminInstanceController
public function instanceScan(Request $request)
{
DB::transaction(function() {
Profile::whereNotNull('domain')
Profile::select('domain')->whereNotNull('domain')
->groupBy('id')
->groupBy('domain')
->chunk(50, function($domains) {
foreach($domains as $domain) {