@ozdao/prometheus-framework 0.2.258 → 0.2.260
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/events.server.js +3 -0
- package/dist/events.server.mjs +3 -0
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +655 -655
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +655 -655
- package/package.json +1 -1
- package/src/modules/events/events.server.js +2 -0
- package/src/modules/events/models/event.model.js +3 -0
package/dist/events.server.js
CHANGED
@@ -717,6 +717,7 @@ var event_model = (db, additionalFields = {}) => {
|
|
717
717
|
default: false
|
718
718
|
}
|
719
719
|
};
|
720
|
+
console.log("add fiels", additionalFields);
|
720
721
|
const EventSchema = new db.mongoose.Schema({
|
721
722
|
...baseSchema,
|
722
723
|
...additionalFields
|
@@ -735,6 +736,7 @@ var event_model = (db, additionalFields = {}) => {
|
|
735
736
|
applyOwnershipSchema(EventSchema, db);
|
736
737
|
applyMetadataSchema(EventSchema);
|
737
738
|
const Event = db.mongoose.model("Event", EventSchema);
|
739
|
+
console.log("schema is", EventSchema);
|
738
740
|
return Event;
|
739
741
|
};
|
740
742
|
var ticket_model = (db) => {
|
@@ -802,6 +804,7 @@ const createTicketModel = ticket_model;
|
|
802
804
|
function initializeEvent(app, db, origins, publicPath, options = {}) {
|
803
805
|
console.log("initializeEvent publicPath:", publicPath);
|
804
806
|
const { eventFields = {}, ticketFields = {} } = options;
|
807
|
+
console.log("new fields is", eventFields);
|
805
808
|
db.event = createEventModel(db, eventFields);
|
806
809
|
db.ticket = createTicketModel(db);
|
807
810
|
if (app) {
|
package/dist/events.server.mjs
CHANGED
@@ -716,6 +716,7 @@ var event_model = (db, additionalFields = {}) => {
|
|
716
716
|
default: false
|
717
717
|
}
|
718
718
|
};
|
719
|
+
console.log("add fiels", additionalFields);
|
719
720
|
const EventSchema = new db.mongoose.Schema({
|
720
721
|
...baseSchema,
|
721
722
|
...additionalFields
|
@@ -734,6 +735,7 @@ var event_model = (db, additionalFields = {}) => {
|
|
734
735
|
applyOwnershipSchema(EventSchema, db);
|
735
736
|
applyMetadataSchema(EventSchema);
|
736
737
|
const Event = db.mongoose.model("Event", EventSchema);
|
738
|
+
console.log("schema is", EventSchema);
|
737
739
|
return Event;
|
738
740
|
};
|
739
741
|
var ticket_model = (db) => {
|
@@ -801,6 +803,7 @@ const createTicketModel = ticket_model;
|
|
801
803
|
function initializeEvent(app, db, origins, publicPath, options = {}) {
|
802
804
|
console.log("initializeEvent publicPath:", publicPath);
|
803
805
|
const { eventFields = {}, ticketFields = {} } = options;
|
806
|
+
console.log("new fields is", eventFields);
|
804
807
|
db.event = createEventModel(db, eventFields);
|
805
808
|
db.ticket = createTicketModel(db);
|
806
809
|
if (app) {
|