Rename account_provider

This commit is contained in:
Deon George
2023-05-10 16:37:43 +09:00
parent 17ebbb71e8
commit 11b554daad
2 changed files with 40 additions and 2 deletions

View File

@@ -89,8 +89,8 @@ class Account extends Model implements IDs
public function providers()
{
return $this->belongsToMany(ProviderOauth::class,'account_provider')
->where('account_provider.site_id',$this->site_id)
return $this->belongsToMany(ProviderOauth::class,'account__provider')
->where('account__provider.site_id',$this->site_id)
->withPivot('ref','synctoken','created_at','updated_at');
}