You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
The code sample for custom adapter methods currently reads:
/*
// Custom methods defined here will be available on all models
// which are hooked up to this adapter:
//
// e.g.:
//
foo: function (collectionName, options, cb) {
return cb(null,"ok");
},
bar: function (collectionName, options, cb) {
if (!options.jello) return cb("Failure!");
else return cb();
destroy: function (connection, collection, options, values, cb) {
return cb();
}
During testing, it appears that the connection, collection, options and cb are passed. It should probably read along the lines of:
foo: function (connectionName, collectionName, options, cb) { ... }
The text was updated successfully, but these errors were encountered:
I'm not a 100% sure what are the goals for the boilerplate but I believe current efforts have been made towards the sails-generate-adapter. Having said that, if you submit a PR to the boilerplate I'll gladly take a look.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The code sample for custom adapter methods currently reads:
/*
During testing, it appears that the connection, collection, options and cb are passed. It should probably read along the lines of:
foo: function (connectionName, collectionName, options, cb) { ... }
The text was updated successfully, but these errors were encountered: