Questions tagged as 'sailsjs'

1
answer

How to perform an update with mongoose and nodejs?

I have the following code for an update, the problem is that I do not know if more than one field can be updated and if so, how would it be? Boleta.update({serie: serie}, {firma: parametros}, function (err, firma){ if (err) {...
asked by 02.02.2017 / 23:50
2
answers

Overwrite default routes in sailsjs

I have a controller called UsersController with the following method: module.exports = { index: function(req, res, next){ Users.find({}, function(err, users){ if(err) return next(err); if(!users) retu...
asked by 28.10.2016 / 02:51
1
answer

Login error with Facebook Api

Hi, I'm trying to make my login with the api of facebook, but when I send the request apparently to a problem with the url that I added to make the callback , I'm working with sails.js using the passport framewo...
asked by 09.06.2016 / 07:46
0
answers

Upload file via io.socket.request ()

I need to upload a file via io.socket.request (), via form and ajax I could already do the header of the form is: <form method="POST" action="/etc" enctype="multipart/form-data"> But with io.socket.request () nothing comes to my for...
asked by 16.08.2017 / 21:06
1
answer

problems when updating from an array in mongo and nodejs using async

Hi, I have a problem I want to update, a database from an array that I have, to cycle the array and every key that exists in the db that I update ... I have written the code, but I only update the last record .. I do not know why. var...
asked by 16.08.2016 / 17:55