Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FootprintService for knex #54

Open
cesar2064 opened this issue May 22, 2016 · 1 comment
Open

FootprintService for knex #54

cesar2064 opened this issue May 22, 2016 · 1 comment
Labels

Comments

@cesar2064
Copy link

cesar2064 commented May 22, 2016

Hi I had the following error when I tried to access the footprint url "/api/v1/user" :

error: TypeError: FootprintService.find is not a function at FootprintController.find (D:\Proyectos\covead\core\node_modules\trailpack-express\api\controllers\FootprintController.js:44:35) at Layer.handle as handle_request at next (D:\Proyectos\covead\core\node_modules\router\lib\route.js:138:13) at Footprint.find (D:\Proyectos\covead\core\node_modules\trailpack-express\api\policies\FootprintPolicy.js:38:5) at Layer.handle as handle_request at next (D:\Proyectos\covead\core\node_modules\router\lib\route.js:138:13) at Route.dispatch (D:\Proyectos\covead\core\node_modules\router\lib\route.js:109:3) at handle (D:\Proyectos\covead\core\node_modules\router\index.js:519:11) at Layer.handle as handle_request at D:\Proyectos\covead\core\node_modules\router\index.js:290:22 at param (D:\Proyectos\covead\core\node_modules\router\index.js:367:14) at param (D:\Proyectos\covead\core\node_modules\router\index.js:383:14) at param (D:\Proyectos\covead\core\node_modules\router\index.js:383:14) at Function.process_params (D:\Proyectos\covead\core\node_modules\router\index.js:428:3) at next (D:\Proyectos\covead\core\node_modules\router\index.js:284:10) at methodOverride (D:\Proyectos\covead\core\node_modules\method-override\index.js:65:14) at Layer.handle as handle_request at trim_prefix (D:\Proyectos\covead\core\node_modules\router\index.js:329:13) at D:\Proyectos\covead\core\node_modules\router\index.js:293:7 at Function.process_params (D:\Proyectos\covead\core\node_modules\router\index.js:348:12) at next (D:\Proyectos\covead\core\node_modules\router\index.js:284:10) at compression (D:\Proyectos\covead\core\node_modules\compression\index.js:219:5)

I am using Knex and pg for the models, and express as web server.

@tjwebb tjwebb added the bug label May 24, 2016
@tjwebb
Copy link
Member

tjwebb commented May 24, 2016

The FootprintService is not yet implemented for the knex trailpack. You can still use the rest of the functionality per usual. FootprintService will be fully implemented before this module reaches 1.0.

(did not mean to close the issue; re-opened)

@tjwebb tjwebb closed this as completed May 24, 2016
@tjwebb tjwebb reopened this May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants