Make OAuth2Application backwards compatible again

This commit is contained in:
Amish Shah
2017-04-30 11:21:48 +01:00
parent dd110f4824
commit 8e5c600227
2 changed files with 9 additions and 1 deletions

View File

@@ -94,6 +94,14 @@ class OAuth2Application {
* @type {boolean}
*/
this.secret = data.secret;
if (data.owner) {
/**
* The owner of this OAuth application
* @type {?User}
*/
this.owner = this.client.dataManager.newUser(data.owner);
}
}
/**