diff --git a/package.json b/package.json index 48b2810..020dea3 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/associations/associate.js b/src/associations/associate.js index a8dda0c..5514ea5 100644 --- a/src/associations/associate.js +++ b/src/associations/associate.js @@ -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]); }