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 +1 -1
- package/schema/camera.model.js +3 -4
package/package.json
CHANGED
package/schema/camera.model.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
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);
|