database-connector 2.0.0 → 2.0.1
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/models/Policy.js +2 -2
- package/package.json +1 -1
package/models/Policy.js
CHANGED
|
@@ -126,7 +126,7 @@ const { Schema, model } = require('mongoose');
|
|
|
126
126
|
* ringing:
|
|
127
127
|
* type: boolean
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
const policySchema = new Schema(
|
|
130
130
|
{
|
|
131
131
|
workingTime: {
|
|
132
132
|
type: {
|
|
@@ -211,4 +211,4 @@ exports.policySchema = new Schema(
|
|
|
211
211
|
{}
|
|
212
212
|
);
|
|
213
213
|
|
|
214
|
-
module.exports = model('Policy',
|
|
214
|
+
module.exports = model('Policy', policySchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "database-connector",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "MongoDB models package with Mongoose schemas for e-commerce applications. Includes User, Product, Store, Order and more with built-in validation and virtual properties.",
|
|
5
5
|
"main": "models/index.js",
|
|
6
6
|
"scripts": {
|