mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-28 11:13:14 +03:00
fix: do not ask to regenerate the HTTP API key if this one isn't available yet
This commit is contained in:
parent
36b0f68afc
commit
d265377a43
@ -49,7 +49,7 @@ const generateHttpApiKey = () => new Promise(async (resolve, reject) => {
|
||||
|
||||
export default () => new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
if (process.env.LEON_HTTP_API_KEY === '') {
|
||||
if (!process.env.LEON_HTTP_API_KEY || process.env.LEON_HTTP_API_KEY === '') {
|
||||
await generateHttpApiKey()
|
||||
} else if (!process.env.IS_DOCKER) {
|
||||
const answer = await prompt({
|
||||
|
Loading…
Reference in New Issue
Block a user