upsertRecord: function(record: YiRecord){ try{ BkRecords.upsert(record) }catch(err){ LogDB(err.toString(), record, this.userId) } }
Meteor.publish('bkrecord', function(bookid: string, options: Object) { try{ return BkRecords.find(buildQuery.call(this, bookid), options); }catch(err){ LogDB(err.toString(), options, 'publish: ' + bookid) return null } });