Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Call custom param fn with query options as well #1

Merged
merged 1 commit into from

1 participant

@jrf0110
Owner

No description provided.

@jrf0110 jrf0110 merged commit 26396c7 into from
@jrf0110 jrf0110 deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 16, 2013
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dirac-middleware.js
View
2  lib/dirac-middleware.js
@@ -40,7 +40,7 @@ m.param = function(field, def, fn){
if (value == undefined || value == null) return next();
- if (typeof fn == 'function') fn(req.queryObj, value);
+ if (typeof fn == 'function') fn(value, req.queryObj, req.queryOptions);
else req.queryObj[field] = value;
next();
};
Something went wrong with that request. Please try again.