From 715216e412f590fe088309e78f2576b51475df2a Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 17 Sep 2020 16:38:33 +0100 Subject: [PATCH] more lint --- packages/server/src/api/controllers/static.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/controllers/static.js b/packages/server/src/api/controllers/static.js index 45f091ad52..6f40a01c66 100644 --- a/packages/server/src/api/controllers/static.js +++ b/packages/server/src/api/controllers/static.js @@ -71,7 +71,7 @@ exports.processLocalFileUpload = async function(ctx) { try { // TODO: get file sizes of images after resize - const responses = await Promise.all(fileProcessOperations) + await Promise.all(fileProcessOperations) let pendingFileUploads // local document used to track which files need to be uploaded @@ -87,8 +87,8 @@ exports.processLocalFileUpload = async function(ctx) { pendingFileUploads = { _id: "_local/fileuploads", uploads: [] } }) - fileUploads.uploads = [...filesToProcess, ...pendingFileUploads.uploads] - await db.put(fileUploads) + pendingFileUploads.uploads = [...filesToProcess, ...pendingFileUploads.uploads] + await db.put(pendingFileUploads) ctx.body = filesToProcess } catch (err) {