Skip to content
Snippets Groups Projects
Unverified Commit 86c457e3 authored by Kevin Aleman's avatar Kevin Aleman Committed by GitHub
Browse files

[FIX] Change canned response model index to match other definition (#24235)

parent 0afb8dc4
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,12 @@ export class CannedResponse extends Base {
constructor() {
super('canned_response');
this.tryEnsureIndex({
shortcut: 1,
});
this.tryEnsureIndex(
{
shortcut: 1,
},
{ unique: true },
);
}
createOrUpdateCannedResponse(_id, { shortcut, text, tags, scope, userId, departmentId, createdBy, _createdAt }) {
......
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