Permalink
Browse files

Update lib/persistence.sync.server.js

  • Loading branch information...
1 parent d6b6e1e commit 338ab802a04da81918c76f6a6e80e9efa961c540 @jacobmumm committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/persistence.sync.server.js
@@ -28,7 +28,7 @@
* otherwise the application will hang (because the select query fails). After that,
* just visit http://localhost:8888/
*/
-var sys = require('sys');
+var sys = require('util');
function log(o) {
sys.print(sys.inspect(o) + "\n");
@@ -76,7 +76,7 @@ exports.pushUpdates = function(session, tx, Entity, since, callback) {
}
queryCollection.filter("_lastChange", ">", since).list(tx, function(items) {
var results = [];
- var meta = Entity.meta;
+ var meta = session.getMeta(queryCollection._entityName);
var fieldSpec = meta.fields;
for(var i = 0; i < items.length; i++) {
var itemData = items[i]._data;

0 comments on commit 338ab80

Please sign in to comment.