Closed albertpeiro closed 4 years ago
Trying to upgrade this lib to Sails 1.0 https://github.com/albertpeiro/barrels
Help appreciated!
To anyone that may stumble upon this, I created a fork of Barrels, called Fixted a couple years back, because of a different issue regarding fixture creation timing. It is currently up-to-date with Sails v1 standards.
@neonexus feel free to submit a PR to put the link to your library at the top of the README here.
@bredikhin Done. Feel free to change the wording if you like.
@bredikhin Looks like you'll have to deploy to NPM to update that README too, unfortunately.
@bredikhin Another option would be to just tell NPM that the package is deprecated with a quick command:
npm deprecate barrels "Barrels has been deprecated in favor of 'Fixted': npm i --save-dev fixted"
@bredikhin I know I'm asking a lot here, but if you are really done with this project, can you PLEASE run the command (or something similar to the one) above to make it official? No one actually reads the Github README's on NPM installs.
Followed exactly your example and I'm getting this:
UsageError: Invalid criteria. Details: Cannot use this method (
destroy) with a criteria of
undefined. (This is just a simple failsafe to help protect your data: if you really want to destroy ALL records, no problem-- please just be explicit and provide a criteria of
{}`.)