loopback
loopback copied to clipboard
Model name with underscore creates unexpected issue with standalone scripts
I have a few standalone scripts that a cron runs periodically.
I found out that I was unable to access models with an underscore, while others work.
var server = require('../server/server'); // To access models and database
console.log(server.models.project_category); // Model named with underscore is inaccessible
console.log(server.models.projectcategory); // Model named without underscore is accessible
@alexxgathp Are you still running into issues? Can you provide a sample repo for me to reproduce the issue?
I tested it today on a new project I have. Issue appears to be gone.