Commit 5c968474cb240970cd1d0171e14ba9001d9b3251
1 parent
4ce6e5c8
Exists in
master
and in
1 other branch
Verificar status requisição
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
db/api.js
... | ... | @@ -16,6 +16,7 @@ function create(object, callback) { |
16 | 16 | |
17 | 17 | function update(Request, id, status, callback) { |
18 | 18 | console.log("== Update requisicao"); |
19 | + console.log("ID " + id + "STATUS " + status); | |
19 | 20 | Request.update({'id': id}, {$set : { 'status' : status }}, function (err, result) { |
20 | 21 | if (err) callback(null); |
21 | 22 | callback(result); | ... | ... |