@go-mailer/jarvis 4.0.0 → 4.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.
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
const { Schema,
|
|
1
|
+
const { Schema, Repository } = require('redis-om')
|
|
2
2
|
const client = require('../index')
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
const CampaignSchema = new Schema(Campaign, {
|
|
4
|
+
const CampaignSchema = new Schema('campaign', {
|
|
6
5
|
id: {type: 'number'},
|
|
7
6
|
status: {type: 'number'}
|
|
8
7
|
})
|
|
9
8
|
|
|
10
9
|
module.exports = {
|
|
11
|
-
CampaignRepo:
|
|
10
|
+
CampaignRepo: new Repository(CampaignSchema, client)
|
|
12
11
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
const { Schema,
|
|
1
|
+
const { Schema, Repository } = require('redis-om')
|
|
2
2
|
const client = require('../index')
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
const ContactImportSchema = new Schema(ContactImport, {
|
|
4
|
+
const ContactImportSchema = new Schema('contactimport', {
|
|
6
5
|
data: { type: 'string' }
|
|
7
6
|
})
|
|
8
7
|
|
|
9
8
|
module.exports = {
|
|
10
|
-
contactImportRepo:
|
|
9
|
+
contactImportRepo: new Repository(ContactImportSchema, client)
|
|
11
10
|
}
|