user: add routes to set/clear avatar
This commit is contained in:
@@ -82,7 +82,7 @@ function setAvatar(req, res, next) {
|
||||
function clearAvatar(req, res, next) {
|
||||
assert.strictEqual(typeof req.user, 'object');
|
||||
|
||||
users.clearAvatar(req.user, function (error) {
|
||||
users.clearAvatar(req.user.id, function (error) {
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(202, {}));
|
||||
|
||||
Reference in New Issue
Block a user