fix(associate): it seems sometimes associations don't resolve or reject, causing a hang
This commit is contained in:
parent
dc5a010408
commit
afb08670e8
@ -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": {
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user