Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oelin authored Jan 30, 2023
1 parent a183bc0 commit e994924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default async function midjourney(prompt, inputs = {}) {
})

let output = (await response2.json())?.prediction?.output
if (output.length) { return output }
if (output && output.length) { return output }

await sleep(1000)
}
Expand Down

0 comments on commit e994924

Please sign in to comment.