Skip to content

Commit

Permalink
[BUGFIX] Remove unused connector_overrides from JS
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasNilsson committed Dec 1, 2023
1 parent 8f7df5c commit 1c8c49e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions Resources/Public/JavaScript/qbank-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,13 @@
* Returns an object with user AND potential connector config override for the current user
*/
this.getUser = function() {
var delayed = new QBCJQ.Deferred(), userRequest = this.call("accounts/me"), settingsRequest = this.call("accounts/settings.json/connector_override"), object = {};
var delayed = new QBCJQ.Deferred(), userRequest = this.call("accounts/me"), object = {};
userRequest.then(function(user) {
object.user = user;
if (object.settings !== undefined) {
delayed.resolve(object);
}
});
settingsRequest.then(function(settings) {
object.settings = JSON.parse(settings);
if (object.user) {
delayed.resolve(object);
}
}, function() {
object.settings = false;
if (object.user) {
delayed.resolve(object);
}
});
return delayed;
};
this.listCategories = function() {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/qbank-connector.min.js

Large diffs are not rendered by default.

0 comments on commit 1c8c49e

Please sign in to comment.