From c7794e00f66554752e0ad130b62ae15b65d5bbf0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 16 Nov 2022 15:32:32 -0600 Subject: [PATCH] Update:Author image from cache API status codes --- server/managers/CacheManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/managers/CacheManager.js b/server/managers/CacheManager.js index 3264f8f3..ce48ffc3 100644 --- a/server/managers/CacheManager.js +++ b/server/managers/CacheManager.js @@ -139,14 +139,14 @@ class CacheManager { stream.pipeline(r, ps, (err) => { if (err) { console.log(err) - return res.sendStatus(400) + return res.sendStatus(500) } }) return ps.pipe(res) } let writtenFile = await resizeImage(author.imagePath, path, width, height) - if (!writtenFile) return res.sendStatus(400) + if (!writtenFile) return res.sendStatus(500) // Set owner and permissions of cache image await filePerms.setDefault(path)