gemcap-be-common 1.4.65 → 1.4.66
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/package.json
CHANGED
|
@@ -6,7 +6,7 @@ const main_helper_1 = require("../helpers/main.helper");
|
|
|
6
6
|
class CompaniesService {
|
|
7
7
|
async getCompanies() {
|
|
8
8
|
const companies = await Company_model_1.Company
|
|
9
|
-
.find({
|
|
9
|
+
.find({ isDeleted: { $ne: true } })
|
|
10
10
|
.sort({ name: 1 })
|
|
11
11
|
.lean()
|
|
12
12
|
.exec();
|
|
@@ -4,7 +4,7 @@ import { fieldsToUnset, removeFields } from '../helpers/main.helper';
|
|
|
4
4
|
export class CompaniesService {
|
|
5
5
|
async getCompanies() {
|
|
6
6
|
const companies = await Company
|
|
7
|
-
.find({
|
|
7
|
+
.find({ isDeleted: { $ne: true } })
|
|
8
8
|
.sort({ name: 1 })
|
|
9
9
|
.lean<ICompanyLean[]>()
|
|
10
10
|
.exec();
|