@optimiser/common 1.0.335 → 1.0.336
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.
- package/dist/lib/utility.js +1 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -3831,7 +3831,7 @@ function SyncUserLicenceConsumedCount(msp_d, db, dbMaster) {
|
|
|
3831
3831
|
if (comLicenceInUserLicence && comLicenceInUserLicence.length) {
|
|
3832
3832
|
bulkLicenceOps = [{
|
|
3833
3833
|
updateMany: {
|
|
3834
|
-
filter: { 'CompanyID': new mongodb_1.ObjectId(msp_d.ci), 'LicenceType': { $ne: 'Domain' },
|
|
3834
|
+
filter: { 'CompanyID': new mongodb_1.ObjectId(msp_d.ci), 'LicenceType': { $ne: 'Domain' }, IsActive: true },
|
|
3835
3835
|
update: [
|
|
3836
3836
|
{ $set: { 'NoOfLicenceConsumed': 0 } },
|
|
3837
3837
|
{ $set: { 'NoOfRemainingLicence': "$NoOfLicence" } }
|