fix: #9055, non-standard API response from addThumbs route

Also removed old thumb upload router handler, and updated uploadPost handling in composer to match new response schema
This commit is contained in:
Julian Lam
2020-12-04 14:32:57 -05:00
parent c09c238e3f
commit 340387c18a
4 changed files with 18 additions and 51 deletions

View File

@@ -100,7 +100,7 @@ Topics.addThumb = async (req, res, next) => {
return;
}
const files = await uploadsController.uploadThumb(req, res, next); // response is handled here, fix this?
const files = await uploadsController.uploadThumb(req, res, next); // response is handled here
// Add uploaded files to topic zset
if (files && files.length) {