summaryrefslogtreecommitdiffstats
path: root/models/integrations.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-02-28 22:39:02 +0200
committerLauri Ojansivu <x@xet7.org>2019-02-28 22:39:02 +0200
commit4b3795814018ceb16f6df4c5e6df146c89e2111a (patch)
treed197f95cfa14decaf1833fa76000de69d593f319 /models/integrations.js
parent49229e1723de14cdc66dc6480624bba426d35e36 (diff)
parent3edff32bde9eda3c0ea8bf3960aa8eef1a3c5524 (diff)
downloadwekan-4b3795814018ceb16f6df4c5e6df146c89e2111a.tar.gz
wekan-4b3795814018ceb16f6df4c5e6df146c89e2111a.tar.bz2
wekan-4b3795814018ceb16f6df4c5e6df146c89e2111a.zip
Merge branch 'devel' into edge
Diffstat (limited to 'models/integrations.js')
-rw-r--r--models/integrations.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/integrations.js b/models/integrations.js
index 1c473b57..65a7af63 100644
--- a/models/integrations.js
+++ b/models/integrations.js
@@ -88,6 +88,10 @@ Integrations.allow({
//INTEGRATIONS REST API
if (Meteor.isServer) {
+ Meteor.startup(() => {
+ Integrations._collection._ensureIndex({ boardId: 1 });
+ });
+
/**
* @operation get_all_integrations
* @summary Get all integrations in board