Thumb uploads/post uploads normalization (#13300)

* testing thumn/post upload refactor

* fix: isOrphan check

* lint: fix md5

* test: fix upload test

* user

* fix: upgrade script

* refactor: long line

* lint: lint

* test: fix tests

* Squashed commit of the following:

commit cd70e6c610
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date:   Fri Apr 4 09:24:54 2025 -0400

    fix: req.body can be undefined

* refactor: show data on test fail

* test: logs

* test: change test

* make sure timestamps are different
This commit is contained in:
Barış Soner Uşaklı
2025-04-04 10:45:05 -04:00
committed by GitHub
parent cd70e6c610
commit 3ad6ee075b
14 changed files with 209 additions and 73 deletions

View File

@@ -143,7 +143,7 @@ Topics.addThumb = async (req, res) => {
await Promise.all(files.map(async (fileObj) => {
await topics.thumbs.associate({
id: req.params.tid,
path: fileObj.path || fileObj.url,
path: fileObj.url,
});
}));
}