mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
tests(api): Add update method for api user
This commit is contained in:
@@ -33,6 +33,12 @@ class ApiUser {
|
|||||||
this.put = _requestMaker(this, 'put');
|
this.put = _requestMaker(this, 'put');
|
||||||
this.del = _requestMaker(this, 'del');
|
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
|
// Sets up an abject that can make all REST requests
|
||||||
|
|||||||
Reference in New Issue
Block a user