mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
Added index to Votes on startup
This commit is contained in:
parent
7ff103f806
commit
faa856f78f
2 changed files with 4 additions and 0 deletions
3
packages/vulcan-voting/lib/server/indexes.js
Normal file
3
packages/vulcan-voting/lib/server/indexes.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Votes from '../modules/votes/collection.js';
|
||||
|
||||
Votes._ensureIndex({ "userId": 1, "documentId": 1 });
|
|
@ -1,5 +1,6 @@
|
|||
import './graphql.js';
|
||||
import './cron.js';
|
||||
import './scoring.js';
|
||||
import './indexes.js';
|
||||
|
||||
export * from '../modules/index.js';
|
||||
|
|
Loading…
Add table
Reference in a new issue