mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Merge branch 'api-v3' into api-v3-groups
This commit is contained in:
@@ -33,6 +33,12 @@ class ApiUser {
|
||||
this.put = _requestMaker(this, 'put');
|
||||
this.del = _requestMaker(this, 'del');
|
||||
}
|
||||
|
||||
update (options) {
|
||||
return new Promise((resolve) => {
|
||||
_updateDocument('users', this, options, resolve);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Sets up an abject that can make all REST requests
|
||||
|
||||
Reference in New Issue
Block a user