diff options
author | bobzel <zzzman@gmail.com> | 2025-02-26 23:41:07 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-02-26 23:41:07 -0500 |
commit | a162057114fd3d961e447d6c3051c1c8c0c6b46d (patch) | |
tree | 77da42a32e8deaa12db1d1bd99559ae0b99ec784 /src/server/ApiManagers/FireflyManager.ts | |
parent | 2a71391a44eddcc438a5b8ae7d7c2d873f8adcfc (diff) |
made ai. button draggable to regenerate images.
Diffstat (limited to 'src/server/ApiManagers/FireflyManager.ts')
-rw-r--r-- | src/server/ApiManagers/FireflyManager.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/ApiManagers/FireflyManager.ts b/src/server/ApiManagers/FireflyManager.ts index 8a310aed8..e75ede9df 100644 --- a/src/server/ApiManagers/FireflyManager.ts +++ b/src/server/ApiManagers/FireflyManager.ts @@ -298,13 +298,13 @@ export default class FireflyManager extends ApiManager { _invalid(res, styleUrl.message); throw new Error('Error uploading images to dropbox'); } - this.uploadImageToDropbox(req.body.structure, req.user as DashUserModel) - .then(structureUrl => { - if (structureUrl instanceof Error) { - _invalid(res, structureUrl.message); + this.uploadImageToDropbox(req.body.structureUrl, req.user as DashUserModel) + .then(dropboxStructureUrl => { + if (dropboxStructureUrl instanceof Error) { + _invalid(res, dropboxStructureUrl.message); throw new Error('Error uploading images to dropbox'); } - return { styleUrl, structureUrl }; + return { styleUrl, structureUrl: dropboxStructureUrl }; }) .then(uploads => this.generateImageFromStructure(req.body.prompt, req.body.width, req.body.height, uploads.structureUrl, req.body.strength, req.body.presets, uploads.styleUrl) |