Permalink
Browse files

Ensuring we send a boolean value instead of null.

  • Loading branch information...
1 parent 6893b19 commit 835eda66aff5a29a58ef2e89652abf4a3e8b7e8a @simonwex simonwex committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/serializer.js
View
@@ -60,7 +60,7 @@ function waitForStory(){
// Persist the story to MySQL
mysql.query(
- 'REPLACE INTO stories SET id = ?, data = ?, user_id = ?, published_at = ?, durable = ?', [story.id, JSON.stringify(story), userId, story.pubdate, story.durable],
+ 'REPLACE INTO stories SET id = ?, data = ?, user_id = ?, published_at = ?, durable = ?', [story.id, JSON.stringify(story), userId, story.pubdate, !!story.durable],
function(err, data){
// TODO: Handle error wisely
if (err)

0 comments on commit 835eda6

Please sign in to comment.