Skip to content

When using sequelize, npm run start:server reports a promise was passed to a then #2751

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

Closed
1 task done
zeripath opened this issue Jul 22, 2018 · 0 comments
Closed
1 task done

Comments

@zeripath
Copy link
Contributor

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack v5.0.0-rc.2
Node v10.7.0
npm 6.1.0
Operating System Ubuntu 18.04 LTS
Item Answer
Transpiler Typescript
Markup Pug
CSS SCSS
Router ngRoute
Client Tests Mocha
DB SQL
Auth Y

When using sequelize, npm run start:server reports:

(node:xxxxxx) Warning: .then() only accepts functions but was passed: [object Promise]

this happens because in server/app.js

sqldb.sequelize.sync()
    .then(wsInitPromise)

is incorrect and should be:

sqldb.sequelize.sync()
    .then(() => wsInitPromise)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant