Update sails_adapter.js