Permalink
Browse files

Shunting the "durable" attribute for stories in the serializer.

  • Loading branch information...
1 parent 3743b33 commit 0bbbb1f6dd599455abd18805a83a1e252eea63a9 @simonwex simonwex committed Jun 22, 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 = ?', [story.id, JSON.stringify(story), userId, story.pubdate],
+ '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 0bbbb1f

Please sign in to comment.