getUserConfig now gets default company and warehouse with dynamic code #632
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue