Permalink
Browse files

More cleanup. Fix typos and Event.remove() invocation.

  • Loading branch information...
Joe Stanco
Joe Stanco committed Nov 19, 2013
1 parent 8991c5a commit 3d3dd635829b8c2111a1ad5464074a010a2d4caa
Showing with 19 additions and 48 deletions.
  1. +0 −1 section-05/5.3/node_modules/.bin/beep
  2. +0 −1 section-05/5.3/node_modules/.bin/clear
  3. +0 −1 section-05/5.3/node_modules/.bin/imgcat
  4. +0 −1 section-05/5.3/node_modules/.bin/starwars
  5. +0 −1 section-07/7.1/todo/node_modules/.bin/express
  6. +0 −1 section-07/7.2/todo/node_modules/.bin/express
  7. +0 −1 section-07/7.3/todo/node_modules/.bin/express
  8. +0 −1 section-07/7.4/todo/node_modules/.bin/express
  9. +0 −1 section-08/8.1/demo_ejs/node_modules/.bin/express
  10. +0 −1 section-08/8.1/demo_jade/node_modules/.bin/express
  11. +0 −1 section-08/8.1/demo_jade/node_modules/.bin/jade
  12. +0 −1 section-08/8.1/demo_swig/node_modules/.bin/express
  13. +0 −1 section-08/8.1/demo_swig/node_modules/.bin/swig
  14. +0 −1 section-08/8.2/todo/node_modules/.bin/express
  15. +0 −1 section-08/8.3/todo/node_modules/.bin/express
  16. +0 −1 section-09/9.1/rsvp/node_modules/.bin/express
  17. +0 −1 section-09/9.2/rsvp/node_modules/.bin/express
  18. +0 −1 section-09/9.3/rsvp/node_modules/.bin/express
  19. +1 −1 section-09/9.4/rsvp/controllers/rest_api.js
  20. +0 −1 section-09/9.4/rsvp/node_modules/.bin/express
  21. +1 −1 section-09/9.5/rsvp/controllers/rest_api.js
  22. +0 −1 section-09/9.5/rsvp/node_modules/.bin/express
  23. +1 −1 section-10/10.1/rsvp/controllers/rest_api.js
  24. +2 −2 section-10/10.1/rsvp/db_config.js
  25. +0 −1 section-10/10.1/rsvp/node_modules/.bin/express
  26. +2 −2 section-10/10.2/rsvp/controllers/rest_api.js
  27. +2 −2 section-10/10.2/rsvp/db_config.js
  28. +0 −1 section-10/10.2/rsvp/node_modules/.bin/express
  29. +3 −3 section-10/10.3/rsvp/controllers/rest_api.js
  30. +2 −2 section-10/10.3/rsvp/db_config.js
  31. +0 −1 section-10/10.3/rsvp/node_modules/.bin/express
  32. +3 −3 section-11/11.1/rsvp/controllers/rest_api.js
  33. +0 −1 section-11/11.1/rsvp/node_modules/.bin/_mocha
  34. +0 −1 section-11/11.1/rsvp/node_modules/.bin/express
  35. +0 −1 section-11/11.1/rsvp/node_modules/.bin/mocha
  36. +2 −2 section-11/11.2/rsvp/controllers/rest_api.js
  37. +0 −1 section-11/11.2/rsvp/node_modules/.bin/_mocha
  38. +0 −1 section-11/11.2/rsvp/node_modules/.bin/express
  39. +0 −1 section-11/11.2/rsvp/node_modules/.bin/mocha

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -182,7 +182,7 @@ exports.destroy_event = function(req, res) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;

This file was deleted.

Oops, something went wrong.
@@ -230,7 +230,7 @@ exports.destroy_event = function(req, res) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;

This file was deleted.

Oops, something went wrong.
@@ -230,7 +230,7 @@ exports.destroy_event = function(req, res) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;
@@ -1,7 +1,7 @@
{
module.exports = {
"host": "localhost",
"db": "rsvp",
"port": 27017,
"user": "rsvp",
"pass": "awesomesauce"
}
};

This file was deleted.

Oops, something went wrong.
@@ -220,7 +220,7 @@ var RestAPI = function(config) {
eventDate: moment(result.date).format("dddd, MMMM Do YYYY"),
eventTitle: result.title,
eventResponses: getResponses(result),
statuses: models.responseSchema.path('status').enumValues,
statuses: config.models.responseSchema.path('status').enumValues,
err: sessionError
});
@@ -250,7 +250,7 @@ var RestAPI = function(config) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;
@@ -1,7 +1,7 @@
{
module.exports = {
"host": "localhost",
"db": "rsvp",
"port": 27017,
"user": "rsvp",
"pass": "awesomesauce"
}
};

This file was deleted.

Oops, something went wrong.
@@ -120,7 +120,7 @@ var RestAPI = function(config) {
type: "new response",
eventId: updatedResult.id,
eventResponses: getResponses(updatedResult),
statuses: models.responseSchema.path('status').enumValues
statuses: config.models.responseSchema.path('status').enumValues
};
}
callback(err, updatedResult, msg);
@@ -228,7 +228,7 @@ var RestAPI = function(config) {
eventDate: moment(result.date).format("dddd, MMMM Do YYYY"),
eventTitle: result.title,
eventResponses: getResponses(result),
statuses: models.responseSchema.path('status').enumValues,
statuses: config.models.responseSchema.path('status').enumValues,
err: sessionError
});
@@ -258,7 +258,7 @@ var RestAPI = function(config) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;
@@ -1,7 +1,7 @@
{
module.exports = {
"host": "localhost",
"db": "rsvp",
"port": 27017,
"user": "rsvp",
"pass": "awesomesauce"
}
};

This file was deleted.

Oops, something went wrong.
@@ -121,7 +121,7 @@ var RestAPI = function(config) {
type: "new response",
eventId: updatedResult.id,
eventResponses: getResponses(updatedResult),
statuses: models.responseSchema.path('status').enumValues
statuses: config.models.responseSchema.path('status').enumValues
};
}
callback(err, updatedResult, msg);
@@ -229,7 +229,7 @@ var RestAPI = function(config) {
eventDate: moment(result.date).format("dddd, MMMM Do YYYY"),
eventTitle: result.title,
eventResponses: getResponses(result),
statuses: models.responseSchema.path('status').enumValues,
statuses: config.models.responseSchema.path('status').enumValues,
err: sessionError
});
@@ -259,7 +259,7 @@ var RestAPI = function(config) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -230,7 +230,7 @@ var RestAPI = function(config) {
eventDate: moment(result.date).format("dddd, MMMM Do YYYY"),
eventTitle: result.title,
eventResponses: getResponses(result),
statuses: models.responseSchema.path('status').enumValues,
statuses: config.models.responseSchema.path('status').enumValues,
err: sessionError
});
@@ -260,7 +260,7 @@ var RestAPI = function(config) {
return;
}
Event.remove(req.params.id, function(err, result) {
Event.remove({ _id: req.params.id }, function(err, result) {
if (err) handleError(err);
res.redirect("/events");
return;

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit 3d3dd63

Please sign in to comment.