fix(associate): it seems sometimes associations don't resolve or reject, causing a hang

This commit is contained in:
Mahdi Dibaiee 2016-03-13 14:56:16 +03:30
parent dc5a010408
commit afb08670e8
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "hapi-sequelize-crud",
"version": "2.0.3",
"version": "2.0.4",
"description": "Hapi plugin that automatically generates RESTful API for CRUD",
"main": "build/index.js",
"config": {

View File

@ -31,8 +31,8 @@ export default (server, a, b, names, options) => {
const fnb = getMethod(instanceb, names.a, false, 'add') ||
getMethod(instanceb, names.a, false, 'set');
await fna(instanceb);
await fnb(instancea);
fnb(instancea);
fna(instanceb);
reply([instancea, instanceb]);
}