@resolveio/server-lib 1.0.14 → 1.0.16
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.
|
@@ -138,7 +138,7 @@ DefaultSchema.plugin(passportLocalMongoose, {
|
|
|
138
138
|
exports.Users = index_1.ResolveIOServer.getMainDB().model('users', DefaultSchema);
|
|
139
139
|
exports.ClientUsers = null;
|
|
140
140
|
if (index_1.ResolveIOServer.getSupportDB()) {
|
|
141
|
-
exports.ClientUsers = index_1.ResolveIOServer.getSupportDB().model('users', DefaultSchema);
|
|
141
|
+
exports.ClientUsers = index_1.ResolveIOServer.getSupportDB().model('client-users', DefaultSchema);
|
|
142
142
|
}
|
|
143
143
|
exports.Users['simplschema'] = new simpl_schema_1.default(schema);
|
|
144
144
|
schema._id = {
|
package/package.json
CHANGED
|
@@ -36,7 +36,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
var simpl_schema_1 = require("simpl-schema");
|
|
39
|
-
var support_ticket_collection_1 = require("../collections/support-ticket.collection");
|
|
40
39
|
var file_collection_1 = require("../collections/file.collection");
|
|
41
40
|
var handlebars = require("handlebars");
|
|
42
41
|
var user_collection_1 = require("../collections/user.collection");
|
|
@@ -46,7 +45,8 @@ function loadSupportMethods(supportManager) {
|
|
|
46
45
|
sendSupportTicketEmail: {
|
|
47
46
|
check: new simpl_schema_1.default({
|
|
48
47
|
supportTicket: {
|
|
49
|
-
type:
|
|
48
|
+
type: Object,
|
|
49
|
+
blackbox: true
|
|
50
50
|
},
|
|
51
51
|
id_files: {
|
|
52
52
|
type: Array
|
|
@@ -135,7 +135,8 @@ function loadSupportMethods(supportManager) {
|
|
|
135
135
|
sendSupportTicketModifiedEmail: {
|
|
136
136
|
check: new simpl_schema_1.default({
|
|
137
137
|
supportTicket: {
|
|
138
|
-
type:
|
|
138
|
+
type: Object,
|
|
139
|
+
blackbox: true
|
|
139
140
|
},
|
|
140
141
|
id_files: {
|
|
141
142
|
type: Array
|
|
@@ -210,7 +211,8 @@ function loadSupportMethods(supportManager) {
|
|
|
210
211
|
sendSupportTicketDeletedEmail: {
|
|
211
212
|
check: new simpl_schema_1.default({
|
|
212
213
|
supportTicket: {
|
|
213
|
-
type:
|
|
214
|
+
type: Object,
|
|
215
|
+
blackbox: true
|
|
214
216
|
}
|
|
215
217
|
}),
|
|
216
218
|
function: function (supportTicket) {
|