@bluedot-innovation/models 6.2.1-alpha.1 → 6.2.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.
@@ -83,19 +83,6 @@ testCase('Account', () => {
83
83
  })
84
84
 
85
85
  testCase('Salesforce Marketing Cloud Integration', () => {
86
- assertions("check email validator", () => {
87
- const sfmc = account.integrations.sfmc;
88
- sfmc.userEmail = "invalid email"
89
- let Account = new AccountModel(account)
90
-
91
- Account.validate((err, res) => {
92
- assert.notExists(res)
93
- assert.exists(err, 'err object should exist')
94
- assert.isObject(err)
95
- done()
96
- })
97
- })
98
-
99
86
  testCase("check required fields", () => {
100
87
  const { requiredFields } = rules.sfmcIntegration;
101
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "6.2.1-alpha.1",
3
+ "version": "6.2.1",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",
@@ -20,11 +20,7 @@ const SfmcIntegrationSchema = new mongoose.Schema({
20
20
  },
21
21
  userEmail: {
22
22
  type: String,
23
- required: true,
24
- validate: {
25
- validator: helpers.validateEmail,
26
- message: '{VALUE} is not a valid email'
27
- }
23
+ required: true
28
24
  },
29
25
  dataExtensionsId: {
30
26
  type: String,