Added Roles, User Management, fixed bugs, added FlexTable component (should be renamed to GridTable), other table components and test code should be removed down the line, added admin function to fix broken data structures.
This commit is contained in:
13
server/DataCollection.js
Normal file
13
server/DataCollection.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import {MongoInternals} from 'meteor/mongo';
|
||||
import {Meteor} from 'meteor/meteor';
|
||||
|
||||
let uri = process.env.MONGO_URL2; //"mongodb://localhost:27017/avusd_data_collection";
|
||||
//uri = "mongodb://localhost:27017/avusd_data_collection";
|
||||
//console.log(uri);
|
||||
let db2 = new MongoInternals.RemoteCollectionDriver(uri);
|
||||
let collection = new Mongo.Collection("records", {_driver: db2});
|
||||
Meteor.Records = collection;
|
||||
|
||||
|
||||
// let results = collection.find({deviceId: "1e3e99ef-adf4-4aa2-8784-205bc60f0ce3"}).fetch();
|
||||
// console.log(results);
|
||||
Reference in New Issue
Block a user