fix: se aggiungi XLS non si aggiornava la lista correttamente, non ricaricava...

This commit is contained in:
Surya Paolo
2025-11-18 13:08:53 +01:00
parent 00ce3bd919
commit 1a342de24a
2 changed files with 2 additions and 2 deletions

View File

@@ -448,7 +448,7 @@ router.post('/search-books', authenticate, async (req, res) => {
if (trovato) {
if (productfind) {
product = await Product.findOne({ _id: productfind._id }).exec();
product = await Product.findOne({ _id: productfind._id }).lean().exec();
if (product) {
const existingResult = results.find((r) => r._id.toString() === product._id.toString());
if (!existingResult) {

View File

@@ -1 +1 @@
1.2.77
1.2.78