tango-api-schema 2.3.23 → 2.3.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.3.23",
3
+ "version": "2.3.25",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,6 +1,5 @@
1
- import { Schema, model } from "mongoose";
2
-
3
- const collection = new Schema(
1
+ import mongoose from "mongoose";
2
+ const collection =new mongoose.Schema(
4
3
  {
5
4
  storeId: {
6
5
  type: String,
@@ -218,4 +217,4 @@ collection.index({
218
217
  });
219
218
 
220
219
 
221
- export default model("camera", collection);
220
+ export default mongoose.model("camera", collection);