Commit af6b9d37 authored by thomas craipeau's avatar thomas craipeau
Browse files

remplacer _ensureIndex par reateIndex

parent b3271151
......@@ -1925,7 +1925,7 @@ indexMax:20 */
},
getcitiesbylatlng(latlng) {
check(latlng, { latitude: Number, longitude: Number });
Cities._ensureIndex({
Cities.createIndex({
geoShape: '2dsphere',
});
return Cities.findOne({
......
......@@ -41,22 +41,22 @@ global.Rooms = Rooms;
global.Proposals = Proposals;
global.Gamesmobile = Gamesmobile;
Events._ensureIndex({
Events.createIndex({
geoPosition: '2dsphere',
});
Projects._ensureIndex({
Projects.createIndex({
geoPosition: '2dsphere',
});
Poi._ensureIndex({
Poi.createIndex({
geoPosition: '2dsphere',
});
Organizations._ensureIndex({
Organizations.createIndex({
geoPosition: '2dsphere',
});
Citoyens._ensureIndex({
Citoyens.createIndex({
geoPosition: '2dsphere',
});
Cities._ensureIndex({
Cities.createIndex({
geoShape: '2dsphere',
});
......
......@@ -194,7 +194,7 @@ Attention le temps est compté. Il y aura une surprise pour les 3 premières pla
}}});
}); */
/* Cities._ensureIndex({
/* Cities.createIndex({
"geoShape": "2dsphere"
});
let retour =Cities.findOne({"geoShape":
......
/* eslint-disable */
Push.appCollection = new Mongo.Collection('_raix_push_app_tokens');
Push.appCollection._ensureIndex({ userId: 1 });
Push.appCollection.createIndex({ userId: 1 });
Push.addListener('token', function (currentToken, value) {
if (value) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment