Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensuring we send a boolean value instead of null.

  • Loading branch information...
commit 835eda66aff5a29a58ef2e89652abf4a3e8b7e8a 1 parent 6893b19
@simonwex simonwex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/serializer.js
View
2  app/serializer.js
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.