cgserver 13.2.11 → 13.2.12
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.
|
@@ -149,6 +149,9 @@ class MongoBaseService {
|
|
|
149
149
|
exports.MongoBaseService = MongoBaseService;
|
|
150
150
|
const autoIdSchema = new mongoose_1.Schema({
|
|
151
151
|
autoid: { type: Number, required: true, default: 0 }
|
|
152
|
+
}, { id: false });
|
|
153
|
+
autoIdSchema.virtual('id').get(function () {
|
|
154
|
+
return this._id;
|
|
152
155
|
});
|
|
153
156
|
class MongoAutoIdsService extends MongoBaseService {
|
|
154
157
|
constructor() {
|