balderdashy/angularSails

Query params not functioning properly with sailsSocket request

Closed this issue · 0 comments

The following code doesn't obey the query params. It pulls all rows from the model.

var query = { where: [{ checkIn: { '>': '2016-05-24T00:00:00.000Z' } }] }; $sailsSocket.get("/visit", {params:query}) .then(function(res) { $scope.visitReportResults = res.data; })

Changing $sailsSocket to $http resolves the issue. According to Rob, it's an issue with the buildParams code.