diff --git a/common/models/OauthSession.php b/common/models/OauthSession.php index bca5167..d3f37d2 100644 --- a/common/models/OauthSession.php +++ b/common/models/OauthSession.php @@ -41,7 +41,7 @@ class OauthSession extends ActiveRecord { } public function getAccount(): ActiveQuery { - return $this->hasOne(Account::class, ['id' => 'owner_id']); + return $this->hasOne(Account::class, ['id' => 'account_id']); } public function getScopes(): array {