chore: Return connectionType for testConnection query

This commit is contained in:
Faruk AYDIN
2021-10-19 13:22:03 +02:00
committed by Ali BARIN
parent 650416ce6b
commit 5a2de1de9e
2 changed files with 13 additions and 4 deletions

View File

@@ -40,7 +40,11 @@ export default class Twitter {
}
async isStillVerified() {
const userData = await this.client.currentUser();
return userData.id ? true : false
try {
await this.client.currentUser();
return true;
} catch (error) {
return false
}
}
}