refs #4823 Bugs solved
This commit is contained in:
parent
17533d873f
commit
168f97275b
6
utils.js
6
utils.js
|
@ -109,6 +109,10 @@ export async function checkConfig() {
|
||||||
throw new Error(`You haven't provided the ${reqEnvVar} environment variable`);
|
throw new Error(`You haven't provided the ${reqEnvVar} environment variable`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const clientConfigData = await models.clientConfig.findOne();
|
||||||
|
if (!clientConfigData)
|
||||||
|
await updateClientConfig(env.CLIENT_ID, env.CLIENT_SECRET);
|
||||||
|
|
||||||
spinner.succeed();
|
spinner.succeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -452,7 +456,7 @@ export async function syncSupplyLines(){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const spinner = ora(`Syncing trade items...`).start();
|
const spinner = ora(`Syncing supply lines...`).start();
|
||||||
let suppliers = await models.supplier.findAll({
|
let suppliers = await models.supplier.findAll({
|
||||||
where: {
|
where: {
|
||||||
isConnected: true
|
isConnected: true
|
||||||
|
|
Loading…
Reference in New Issue