Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Aug 19, 2021
1 parent 6ff119b commit aec25c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/indexing/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Meteor } from "meteor/meteor";
import "./common";

Collection2.on("schema.attached", (collection, ss) => {
if (Meteor.settings.collection2.dontRunIndexing) return;

function ensureIndex(index, name, unique, sparse) {
Meteor.startup(() => {
collection._collection._ensureIndex(index, {
Expand Down

0 comments on commit aec25c1

Please sign in to comment.