loginRecord.js 293 B

12345678910111213
  1. /**
  2. * Created by root on 2015-07-20.
  3. */
  4. var db = require('./db.js');
  5. var collectionName = 'LoginRecords';
  6. module.exports.insert = function(record, callback)
  7. {
  8. db.getCollection(collectionName, function(err, collection){
  9. if (!err)
  10. collection.insert(record);
  11. });
  12. };