Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sails

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

13

lib/scaffolds/controller.js

@@ -98,2 +98,5 @@ exports.definition = function(modelName) {

update: function(req, res) {
var id = req.param('id');
if(!id) return res.send('No id specified!');
// Create monolithic parameter object

@@ -103,9 +106,5 @@ var params = _.extend(req.query || {}, req.params || {}, req.body || {});

var id = req.param('id');
if(!id) return res.send(404);
// Ignore id in params
delete params['id'];
Model.find(id).done(function(err, model) {
console.log("found", model);
});
Model.update({

@@ -115,3 +114,3 @@ id: id

if(err) return res.send(err, 500);
if(!model) return res.send('Model cannot be found.', 500);
if(!model) return res.send('Model cannot be found.', 404);

@@ -118,0 +117,0 @@ // Broadcast success message

@@ -26,3 +26,3 @@ {

],
"version": "0.7.2",
"version": "0.7.3",
"description": "API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)",

@@ -29,0 +29,0 @@ "homepage": "http://sailsjs.com",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc