fix: se aggiungi XLS non si aggiornava la lista correttamente, non ricaricava...
This commit is contained in:
@@ -448,7 +448,7 @@ router.post('/search-books', authenticate, async (req, res) => {
|
|||||||
|
|
||||||
if (trovato) {
|
if (trovato) {
|
||||||
if (productfind) {
|
if (productfind) {
|
||||||
product = await Product.findOne({ _id: productfind._id }).exec();
|
product = await Product.findOne({ _id: productfind._id }).lean().exec();
|
||||||
if (product) {
|
if (product) {
|
||||||
const existingResult = results.find((r) => r._id.toString() === product._id.toString());
|
const existingResult = results.find((r) => r._id.toString() === product._id.toString());
|
||||||
if (!existingResult) {
|
if (!existingResult) {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.2.77
|
1.2.78
|
||||||
Reference in New Issue
Block a user