Commit 4ce6e5c8285783d9c3945809196542dc235a2932
1 parent
9493e37d
Exists in
master
and in
1 other branch
Corrigido o :/id
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/api.js
... | ... | @@ -23,7 +23,7 @@ function update(Request, id, status, callback) { |
23 | 23 | }; |
24 | 24 | |
25 | 25 | function findById(Request, requestId, callback) { |
26 | - Request.find({ id : requests }, { _id: 0, __v: 0 }, function(err, result) { | |
26 | + Request.find({ id : requestId }, { _id: 0, __v: 0 }, function(err, result) { | |
27 | 27 | if (err) callback(null); |
28 | 28 | |
29 | 29 | callback(result); | ... | ... |