Skip to content

Commit

Permalink
add wait log
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Apr 25, 2023
1 parent efa9c88 commit e7ad79e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/midjourney.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class Midjourney extends MidjourneyMessage {
if (httpStatus !== 204) {
throw new Error(`VariationApi failed with status ${httpStatus}`)
}
this.log(`await generate image`)
return await this.WaitOptionMessage(content, `Variations`, loading)

}
Expand Down Expand Up @@ -142,6 +143,7 @@ export class Midjourney extends MidjourneyMessage {
if (httpStatus !== 204) {
throw new Error(`VariationApi failed with status ${httpStatus}`)
}
this.log(`await generate image`)
return await this.WaitOptionMessage(content, `Upscaled`, loading)
}

Expand Down

0 comments on commit e7ad79e

Please sign in to comment.