refactor: Use getApp method for generateAuthUrl method of connection

This commit is contained in:
Faruk AYDIN
2024-09-12 13:58:23 +03:00
parent ace1f84094
commit 8c39739880

View File

@@ -240,7 +240,7 @@ class Connection extends Base {
}
async generateAuthUrl() {
const app = await App.findOneByKey(this.key);
const app = await this.getApp();
const $ = await globalVariable({ connection: this, app });
await app.auth.generateAuthUrl($);