trailsjs / trailpack-sequelize

:package: Sequelize.js Trailpack http://sequelizejs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Posts same value on unique column twice make the second request hang

wongyouth opened this issue · comments

I have a User model with unique set on login column.

  static schema (app, Sequelize) {
    return {
      login: {
        type: Sequelize.STRING,
        unique: true,
        allowNull: false
      },
  }

And use footprints to test User model
When I post 2 requests with same data, the second request hangs until timeout.

Hi @wongyouth ! Strange behavior, did you have your project hosted somewhere ? Or can you create a small one in order to reproduce the problem ? I never had this problem before

Ok I just test and can reproduce the problem, but's it's not where you say. The bug is under trailpack-express the controller doesn't end the request correctly. I'll try to fix it asap

@wongyouth I just push a fix on trailpack-express, can you test with the master branch and let me know if it fix your issue please ?

@jaumard It fixed! Thanks for your quick reply.