This repository was archived by the owner on Jul 11, 2019. It is now read-only.
File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,16 @@ module.exports = function findRecords( req, res ) {
33
33
// Look up the model
34
34
var Model = actionUtil . parseModel ( req ) ;
35
35
36
- // If an `id` param was specified, use the findOne blueprint action
37
- // to grab the particular instance with its primary key === the value
38
- // of the `id` param. (mainly here for compatibility for 0.9, where
39
- // there was no separate `findOne` action)
40
- if ( actionUtil . parsePk ( req ) ) {
41
- return require ( './findone' ) ( req , res ) ;
42
- }
36
+ /* ENABLE if needed ( see https://github.com/mphasize/sails-ember-blueprints/issues/3 )
37
+ * ----------------
38
+ * If an `id` param was specified, use the findOne blueprint action
39
+ * to grab the particular instance with its primary key === the value
40
+ * of the `id` param. (mainly here for compatibility for 0.9, where
41
+ * there was no separate `findOne` action)
42
+ */
43
+ // if ( actionUtil.parsePk( req ) ) {
44
+ // return require( './findone' )( req, res );
45
+ // }
43
46
44
47
// Lookup for records that match the specified criteria
45
48
var query = Model . find ( )
You can’t perform that action at this time.
0 commit comments