shuttlepro-shared 1.3.15 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,7 +46,7 @@ const updateCustomerTimeline = async (id, data) => {
|
|
|
46
46
|
};
|
|
47
47
|
const updateManyCustomerTimelinesByFilter = async (filter = {}, data = {}) => {
|
|
48
48
|
await CustomerTimeline.updateMany(filter, data).exec();
|
|
49
|
-
const updatedDocs = await CustomerTimeline.find(
|
|
49
|
+
const updatedDocs = await CustomerTimeline.find(filter).lean().exec();
|
|
50
50
|
return updatedDocs;
|
|
51
51
|
};
|
|
52
52
|
|