@chevre/domain 23.1.0-alpha.12 → 23.1.0-alpha.13
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/event.js +2 -3
- package/package.json +1 -1
package/lib/chevre/repo/event.js
CHANGED
|
@@ -22,13 +22,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.EventRepo = void 0;
|
|
24
24
|
const mongoose_1 = require("mongoose");
|
|
25
|
-
const uniqid = require("uniqid");
|
|
26
25
|
const errorHandler_1 = require("../errorHandler");
|
|
27
26
|
const factory = require("../factory");
|
|
28
27
|
const EventFactory = require("../factory/event");
|
|
29
28
|
const settings_1 = require("../settings");
|
|
30
29
|
const event_1 = require("./mongoose/schemas/event");
|
|
31
|
-
const USE_OBJECT_ID_AS_EVENT_ID = process.env.USE_OBJECT_ID_AS_EVENT_ID === '1';
|
|
32
30
|
const AVAILABLE_PUBLIC_PROJECT_FIELDS = [
|
|
33
31
|
'additionalProperty', 'aggregateReservation', 'attendeeCount', 'checkInCount', 'coaInfo',
|
|
34
32
|
// 'description',
|
|
@@ -49,7 +47,8 @@ class EventRepo {
|
|
|
49
47
|
*/
|
|
50
48
|
static CREATE_ID() {
|
|
51
49
|
// implement using ObjectId(2025-10-17~)
|
|
52
|
-
return (USE_OBJECT_ID_AS_EVENT_ID) ? new
|
|
50
|
+
// return (USE_OBJECT_ID_AS_EVENT_ID) ? new Types.ObjectId().toHexString() : uniqid();
|
|
51
|
+
return new mongoose_1.Types.ObjectId().toHexString(); // 設定を廃止(2025-11-20~)
|
|
53
52
|
}
|
|
54
53
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
55
54
|
static CREATE_MONGO_CONDITIONS(conditions) {
|
package/package.json
CHANGED