Skip to content

Commit e1d76f9

Browse files
committed
bring back transformed documents
1 parent e58aaf5 commit e1d76f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/angular-meteor-meteorCollection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ AngularMeteorCollection.prototype.updateCursor = function (cursor) {
170170

171171
self.observeHandle = cursor.observeChanges({
172172
addedBefore: function (id, fields, before) {
173-
var newItem = angular.extend(fields, {_id: id});
173+
var newItem = self.$$collection.findOne(id);
174174
if (before == null) {
175175
self.push(newItem);
176176
}

modules/angular-meteor-utils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ var angularMeteorUtils = angular.module('angular-meteor.utils', []);
44
angularMeteorUtils.service('$meteorUtils', [
55
function () {
66
this.getCollectionByName = function(string){
7+
if ('users' === string) {
8+
return Meteor.users;
9+
}
710
for (var globalObject in window) {
811
if (window[globalObject] instanceof Mongo.Collection) {
912
if (window[globalObject]._name == string){

0 commit comments

Comments
 (0)