payservedb 2.0.7 → 2.0.8

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": "payservedb",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -14,8 +14,9 @@ const userSchema = new mongoose.Schema({
14
14
  },
15
15
  phoneNumber: {
16
16
  type: String,
17
- required: false,
17
+ required: [true, 'Phone number is required'],
18
18
  trim: true,
19
+ unique: true
19
20
  },
20
21
  idNumber: {
21
22
  type: String,