I'm sorry this answer is too late, you probably had found a solution by now, but for future references, here it is
you may need to make the lodash global by updating /config/globals.js and set _: true
then you will edit the /config/bootstrap.js with the following
global.sync = require("synchronize");
_.each(sails.models,function(model){
_.map(model,function(attrValue,attrKey){
if(typeof attrValue=="function"){
model[attrKey+"Sync"]=sync(attrValue);
}
});
});
from here on you can use a synchronous version of any model function by appending "Sync" after the function like this users.findSync({fname:'Mostafa'})