Skip to content
Snippets Groups Projects
Commit 9d0c127e authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Fix match on livechat department save

parent d74d213c
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"curly": [2, "all"], "curly": [2, "all"],
"eqeqeq": [2, "allow-null"], "eqeqeq": [2, "allow-null"],
"new-cap": [2, { "new-cap": [2, {
"capIsNewExceptions": ["Match.Optional", "Match.Maybe"] "capIsNewExceptions": ["Match.Optional", "Match.Maybe", "Match.ObjectIncluding"]
}], }],
"use-isnan": 2, "use-isnan": 2,
"valid-typeof": 2, "valid-typeof": 2,
......
...@@ -463,12 +463,12 @@ RocketChat.Livechat = { ...@@ -463,12 +463,12 @@ RocketChat.Livechat = {
description: Match.Optional(String) description: Match.Optional(String)
}); });
check(departmentAgents, [{ check(departmentAgents, [
agentId: String, Match.ObjectIncluding({
username: String, agentId: String,
count: Match.Maybe(Number), username: String
order: Match.Maybe(Number) })
}]); ]);
if (_id) { if (_id) {
const department = RocketChat.models.LivechatDepartment.findOneById(_id); const department = RocketChat.models.LivechatDepartment.findOneById(_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment