From e48634b31064400437e71846c2a310d29ef0c49f Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Thu, 13 Jun 2019 07:39:27 -0400 Subject: [PATCH] Add system index on systems collection. --- server/imports/fixtures/systems.ts | 3 +++ server/main.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 server/imports/fixtures/systems.ts diff --git a/server/imports/fixtures/systems.ts b/server/imports/fixtures/systems.ts new file mode 100644 index 0000000..b51b464 --- /dev/null +++ b/server/imports/fixtures/systems.ts @@ -0,0 +1,3 @@ +import { Systems } from '../../../imports/collections/systems'; + +Systems.rawCollection().createIndex({ system: 1 }, { name: '_system_' }); diff --git a/server/main.ts b/server/main.ts index 94212ab..25c4bac 100644 --- a/server/main.ts +++ b/server/main.ts @@ -2,6 +2,7 @@ import './imports/api/talkgroups'; import './imports/api/upload'; import './imports/fixtures/calls'; +import './imports/fixtures/systems'; import './imports/methods/call-audio'; import './imports/methods/calls-count';