tweetcast/nodejs/node-direct.js
changeset 343 9cabcd2709be
parent 342 60b8281442b8
--- a/tweetcast/nodejs/node-direct.js	Wed Nov 02 17:13:23 2011 +0100
+++ b/tweetcast/nodejs/node-direct.js	Fri Nov 04 16:11:51 2011 +0100
@@ -66,7 +66,7 @@
 }
 
 function commitReference(from_id, to_id, ref_type) {
-    commit_script += 'INSERT INTO tweet_refs ( from_id, to_id, ref_type ) VALUES ( "' + from_id + '", "' + to_id + '", "' + ref_type + '" );\n';
+    commit_script += 'INSERT OR IGNORE INTO tweet_refs ( from_id, to_id, ref_type ) VALUES ( "' + from_id + '", "' + to_id + '", "' + ref_type + '" );\n';
 }
 
 function commitTweet(data) {