From 2acf3ec4a337bd31ba5ab9d276410f4d03ca337e Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Mon, 22 May 2017 09:11:05 -0300 Subject: [PATCH] Fix avatar upload via users.setAvatar REST endpoint --- packages/rocketchat-api/server/v1/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rocketchat-api/server/v1/users.js b/packages/rocketchat-api/server/v1/users.js index aa66fab610f0..dc1e1b928b54 100644 --- a/packages/rocketchat-api/server/v1/users.js +++ b/packages/rocketchat-api/server/v1/users.js @@ -219,8 +219,8 @@ RocketChat.API.v1.addRoute('users.setAvatar', { authRequired: true }, { callback(); })); - this.request.pipe(busboy); })); + this.request.pipe(busboy); })(); }