From cd41df5677f2801b34e0d3cd962ace5d400992da Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Thu, 6 Nov 2014 19:03:53 -0800 Subject: [PATCH] Pass in req.user.uid into uploadFile --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index 9371ed30b4..05057e8b37 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -57,7 +57,7 @@ function uploadPost(req, res, next) { if(file.type.match(/image./)) { uploadImage(req.user.uid, file, next); } else { - uploadFile(req.user, file, next); + uploadFile(req.user.uid, file, next); } }, next); }