Skip to content

Commit

Permalink
Update version & disable background option on async index
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed May 4, 2024
1 parent db64241 commit 864951a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/indexing/package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: 'aldeed:schema-index',
summary: 'Control some MongoDB indexing with schema options',
version: '4.0.0-beta.3',
version: '4.0.0-beta.4',
documentation: '../../README.md',
git: 'https://github.com/aldeed/meteor-schema-index.git',
});
Expand Down
2 changes: 1 addition & 1 deletion package/indexing/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Collection2.on("schema.attached", (collection, ss) => {
function ensureIndex(index, name, unique, sparse) {
Meteor.startup(() => {
collection.createIndexAsync(index, {
background: true,
// background: true,
name,
unique,
sparse,
Expand Down
2 changes: 1 addition & 1 deletion tests/indexing.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if (Meteor.isServer) {
} catch (error) {
// ignore
}
test.createIndexAsync({ field1: 1, field2: 1 }, { unique: true, sparse: true });
await test.createIndexAsync({ field1: 1, field2: 1 }, { unique: true, sparse: true });
}

describe('unique', () => {
Expand Down

0 comments on commit 864951a

Please sign in to comment.