getUserConfig now gets default company and warehouse with dynamic code #632

Merged
joan merged 3 commits from 2923_getUserConfig_default_warehouse_and_company into dev 2021-05-25 09:15:27 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 18f22fa350 - Show all commits

View File

@ -32,7 +32,7 @@ module.exports = function(Self) {
userFk: ctx.req.accessToken.userId
};
userConfig = await Self.app.models.UserConfig.create(newConfig);
userConfig = await models.UserConfig.create(newConfig);
}
return userConfig;
};