app/assets/javascripts/Result.js in cqm-models-1.0.3 vs app/assets/javascripts/Result.js in cqm-models-1.1.1.0
- old
+ new
@@ -1,6 +1,6 @@
-const mongoose = require('mongoose');
+const mongoose = require('mongoose/browser');
const PlaceholderResultSchema = mongoose.Schema({
cache_id: String,
measure_id: String,
sub_id: String,
@@ -23,6 +23,11 @@
MSRPOPLEX: Number,
supplemental_data: Object,
});
module.exports.ResultSchema = PlaceholderResultSchema;
-module.exports.Result = mongoose.model('Result', PlaceholderResultSchema);
+class PlaceholderResult extends mongoose.Document {
+ constructor(object) {
+ super(object, PlaceholderResultSchema);
+ }
+}
+module.exports.PlaceholderResult = PlaceholderResult;