Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Then, generate your key openssl genrsa -out path/to/save/the/key 2048
nishantpradhan
@nishantpradhan
hi
dan-astiak
@dan-astiak
@mikermcneil Adding |ts|map to all occurrences of filter inside these 2 files solved my problem but that means I have to do this for all npm install and after every update
files are : sails/lib/hooks/moduleloader/index.js
and
sails/lib/app/private/controller/local-action/modules.js
image.png
John Wolfe
@wolfejw86
@tleperou perfect, I've done the key/cert with the node https module before, and I figured it would be similar, should've just tried passing it the same dictionary 😶 Thanks this is perfect.
Mouad Belbah
@MouadBelbah
@mikermcneil hey is it possible to customize validation errors in actions2 ?? the ones thrown due to validation in inputs
Markus Mazurczak
@markusmazurczak
Hi all. I am trying to access a helper using sails.helper inside an React.Component always getting "sails is not defined". It is defined as global accessible in config/globals.js. I dont understand how to access an helper inside an React Component class. Any advice?
Markus Mazurczak
@markusmazurczak
Inside the constructor of my React-Component i simply try to access lodash using: console.log(.isArray(this.state)); Which yields: Uncaught ReferenceError: is not defined
_.isArray(this.state)
Shreyash Gupta
@shraiyshv_twitter

npm ERR! code E404
npm ERR! 404 Not Found: @sailshq/lodash@^3.10.2

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Shraiysh\AppData\Roaming\npm-cache_logs\2018-04-02T10_21_51_488Z-debug.log

I am getting this error.
Please help.
Markus Mazurczak
@markusmazurczak
@shraiyshv_twitter You installed the lodash module? npm install --save lodash
Daniel Harvey
@danielsharvey
Question re the .populateAll() method. There is a deprecated method notice node_modules/waterline/lib/waterline/utils/query/get-query-modifier-methods.js:154 but the second parameter is not formally documented. What is the status of this? Just needs documenting?
afvicente
@afvicente
Hi, I am trying to find an encrypted attribute like await User.find({ssn: '555-55-5555'}).decrypt();
However, i get an empty response. await User.find().decrypt(); works fine and i get all results decrypted. Have i missed something?
Equipo Kuuijes
@kuuijes_twitter
@mikermcneil We would love to help translating core messages to spanish, we jus need a config file or locales/json estructure to use, or maybe i18n config for core messages? We would love to help spread sailsjs here in mexico, thank you for the hard work.
Marco Romano
@marcorom88_twitter
Hi. If I start some days ago a project with sails, it is possible use some api written on express js inside project with sails? I have a problem: I want write this project on sails but I have few times and I need working login shared between web app and android app. But the login written on express don't have a session and on mongodb have yet some users with custom hashing. How can resolve this problem?
Jaydev vaghela
@jaydev943_twitter

In populate() select option is not work when i use sub populate for same table

Example : populate('user_id',{select:['name']}).populate('user_id.feeds',{select:['title']})

aggregate function not work on sails it show "cursor" is required
Please provide solution
Velin Kerkov
@mp3por
Hello, has anyone been able to use sails v1 with 2 different dbs using waterline ?
If I use only mysql or mongodb everything works, however if I set MongoDB as default and create a separate datastore property for the MySQL connection Sails just wont load
The error is Could not tear down the ORM hook. Error details: Error: Consistency violation: Attempting to tear down a datastore (default) which is not currently registered with this adapter. This is usually due to a race condition in userland code (e.g. attempting to tear down the same ORM instance more than once), or it could be due to a bug in this adapter.
Velin Kerkov
@mp3por
Also it is very unclear to me how to post this as bug or issue somewhere where it will stay. :)
Velin Kerkov
@mp3por
Also will sails-mysql support JSON type ?
Velin Kerkov
@mp3por
Anyone ?
brookesb91
@brookesb91
@mp3por I haven’t had time to try and replicate your issue yet but I can try later - In the meantime take a look here => https://github.com/balderdashy/sails/issues
Usually someone gets back pretty quickly
Eric Maddox
@maddtech
With the new sails 1.0, where is code that requires some pages be logged in and other not to be logged in?
Velin Kerkov
@mp3por
@brookesb91 10x
brookesb91
@brookesb91
@mp3por sails-mysql can support JSON types in the database - was there anything else you needed to know?
@maddtech You’ll want to look at policies for tat
Mukul Sharma
@mukulsoftwap
i have try sails.js v 1 and choose web app option in cmd , how can i use rest api
Eric Maddox
@maddtech
@brookesb91 Thx, I think I am starting to see how it works now.
brookesb91
@brookesb91
@maddtech no problem!
Daniel Harvey
@danielsharvey
@maddtech Also check the https://ration.io/ / https://github.com/mikermcneil/ration example
Eric Maddox
@maddtech
@danielsharvey will do!
brookesb91
@brookesb91
@danielsharvey +1 for that - hadn’t seen it before - cheers!
Daniel Harvey
@danielsharvey
@brookesb91 No problems. It's a nice app demonstrating a fair number of features. For me, the todo is to get passportjs working with Sail 1.0...
Velin Kerkov
@mp3por
@brookesb91 the way I did it is { type: "ref", columnType: "JSON" } however this translates into column with type "longtext"
@danielsharvey whats the problem ... i got this shit done
brookesb91
@brookesb91
@mp3por That’s fine, the datatypes on top don’t fully reflect the db type - yu can set it explicitly if you wish
Velin Kerkov
@mp3por
not really. My biggest problem is the mongodb + mysql thing. I remember I had the same issue with redis + mysql
@brookesb91
Marco Romano
@marcorom88_twitter
hi everyone. It is possible made a model with an action that's works well on web app and app android both? So, for android I needs response json, and on web app I have some redirect for rendering page. It is possible made single api that works fine on both scenarios? Or for android I needs other api for made response JSON? Thanks!
John Wolfe
@wolfejw86
@marcorom88_twitter can you check for req.wantsJSON and then conditionally send the response as json or a view ?
Marco Romano
@marcorom88_twitter
thanks, seems to be works. I'm new to sails js and I'm learning now how works.
Konstantin Burkalev
@KSDaemon
Hello! May be someone can help me: why req.acceptedLanguages is undefined? I have a policy which check it, and now it is broken…
Abirlal Biswas
@abirlalb_twitter
I am facing issue during databse connection
it is inserting fdata