refactor: Use getApp method for generateAuthUrl method of connection
This commit is contained in:
@@ -240,7 +240,7 @@ class Connection extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async generateAuthUrl() {
|
async generateAuthUrl() {
|
||||||
const app = await App.findOneByKey(this.key);
|
const app = await this.getApp();
|
||||||
const $ = await globalVariable({ connection: this, app });
|
const $ = await globalVariable({ connection: this, app });
|
||||||
|
|
||||||
await app.auth.generateAuthUrl($);
|
await app.auth.generateAuthUrl($);
|
||||||
|
Reference in New Issue
Block a user