Update util

This commit is contained in:
Adw8 2025-02-03 17:26:07 +05:30
parent 455ab152df
commit d360e14aa3
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ const Page: React.FC = (): React.ReactElement => {
if (!transactionSignature) { if (!transactionSignature) {
return { error: 'Transaction signature not found' } return { error: 'Transaction signature not found' }
} };
// Generate image with specified model and transaction reference // Generate image with specified model and transaction reference
const fluxResult = await generateWithFlux(prompt, modelId, transactionSignature); const fluxResult = await generateWithFlux(prompt, modelId, transactionSignature);

View File

@ -26,6 +26,6 @@ export async function uploadToPinata(imageUrl: string): Promise<FluxGenerationRe
} catch (error) { } catch (error) {
return { return {
error: error instanceof Error ? error.message : 'Upload failed' error: error instanceof Error ? error.message : 'Upload failed'
} };
} }
} }