From 3895793965e3f43cc98dddc66296f9c949cc1452 Mon Sep 17 00:00:00 2001 From: pinks Date: Sun, 24 Sep 2023 21:54:44 +0200 Subject: [PATCH] fix: generating using undefined --- app/generationQueue.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/generationQueue.ts b/app/generationQueue.ts index 75faf5c..a167667 100644 --- a/app/generationQueue.ts +++ b/app/generationQueue.ts @@ -136,7 +136,7 @@ async function processGenerationJob( await bot.api.editMessageText( state.replyMessage.chat.id, state.replyMessage.message_id, - `Generating your prompt now... 0% using ${sdInstance.name}`, + `Generating your prompt now... 0% using ${sdInstance.name || sdInstance.id}`, { maxAttempts: 1 }, ); @@ -221,9 +221,9 @@ async function processGenerationJob( await bot.api.editMessageText( state.replyMessage.chat.id, state.replyMessage.message_id, - `Generating your prompt now... ${ - (progressResponse.data.progress * 100).toFixed(0) - }% using ${sdInstance.name}`, + `Generating your prompt now... ${(progressResponse.data.progress * 100).toFixed(0)}% using ${ + sdInstance.name || sdInstance.id + }`, { maxAttempts: 1 }, ).catch(() => undefined);