@chevre/domain 21.30.0-alpha.43 → 21.30.0-alpha.44
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/lib/chevre/repo/code.js
CHANGED
|
@@ -150,9 +150,9 @@ class AuthorizationRepo {
|
|
|
150
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
151
|
const conditions = AuthorizationRepo.CREATE_MONGO_CONDITIONS(params);
|
|
152
152
|
const query = this.authorizationModel.find((conditions.length > 0) ? { $and: conditions } : {}, {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
// __v: 0,
|
|
154
|
+
// createdAt: 0,
|
|
155
|
+
// updatedAt: 0
|
|
156
156
|
});
|
|
157
157
|
if (typeof params.limit === 'number' && params.limit > 0) {
|
|
158
158
|
const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
@@ -41,10 +41,8 @@ const schemaOptions = {
|
|
|
41
41
|
writeConcern: writeConcern_1.writeConcern,
|
|
42
42
|
strict: true,
|
|
43
43
|
strictQuery: false,
|
|
44
|
-
timestamps:
|
|
45
|
-
|
|
46
|
-
updatedAt: 'updatedAt'
|
|
47
|
-
},
|
|
44
|
+
timestamps: false,
|
|
45
|
+
versionKey: false,
|
|
48
46
|
toJSON: {
|
|
49
47
|
getters: false,
|
|
50
48
|
virtuals: false,
|
package/package.json
CHANGED