Skip to content

Commit

Permalink
Removed some unused helper cod
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 27, 2015
1 parent f6b21a7 commit 67d2ab7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
11 changes: 0 additions & 11 deletions lib/ModelHelpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ModelHelpers.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions lib/ModelHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ class ModelHelpers<TDocument extends { _id?: any }, TInstance> {
validate(document: TDocument): SkmatcCore.IResult {
return this._validator.validate(document);
}

/**
* Creates a selector based on the document's unique _id field in downstream format
* @param {any} id The downstream identifier to use when creating the selector
* @returns {object} A database selector which can be used to return only this document in downstream form
*/
selectOneDownstream(document: TDocument): any {
return _.isPlainObject(document) ? document._id : {
_id: document
};
}

/**
* Wraps the given document in an instance wrapper for use throughout the application
Expand Down

0 comments on commit 67d2ab7

Please sign in to comment.