matteomanzo/Playlister

View on GitHub
models/partyGoerModel.js

Summary

Maintainability
A
0 mins
Test Coverage
var helpersDatabase = require('./helpersDatabase');

exports.saveSongChoices = function(ppPartyName, ppPartyDate, pgEmail, pgSongChoice) {
  var collectionName = 'pgSongChoice';
  var collectionObject = {"ppPartyName" : ppPartyName,
                          "ppPartyDate" : ppPartyDate,
                          "pgEmail" : pgEmail,
                          "pgSongChoice" : pgSongChoice};
  helpersDatabase.saveToDatabase(collectionName, collectionObject);
};