Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelErmer committed Jul 24, 2017
1 parent 91caaaa commit 0052d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/populate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = function populate (options) {
module.exports.compatibility = function(options) {
return function(hook) {
// move query to params
if (hook && hook.params && hook.params.query && hook.params.query.$populate) {
if (hook && hook.params && hook.params.query && typeof hook.params.query.$populate !== 'undefined') {
hook.params.$populate = hook.params.query.$populate;
delete hook.params.query.$populate;
}
Expand Down

0 comments on commit 0052d29

Please sign in to comment.