From beccd8090225371b8e39282efa916c48c739be88 Mon Sep 17 00:00:00 2001 From: Emily Hou <39499244+emily-hou1@users.noreply.github.com> Date: Mon, 25 Jun 2018 11:52:29 -0700 Subject: [PATCH] small storage fix (#858) --- server/routes/ws.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/routes/ws.js b/server/routes/ws.js index f2f6250d..e9ea3858 100644 --- a/server/routes/ws.js +++ b/server/routes/ws.js @@ -52,6 +52,8 @@ module.exports = async function(ws, req) { .pipe(parser); storage.set(newId, fileStream, meta); + await parser.promise; + ws.send( JSON.stringify({ url,