Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
fix: condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Apr 14, 2023
1 parent ba2dc63 commit 9d6828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/services/getBlurImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const getBlurImage = async (image: Asset, attempt = 1): Promise<BlurhashR
encoded: `data:image/jpeg;base64,${resizedImageBuf.toString('base64')}`,
}
} catch (e) {
if (attempt > 2) {
if (attempt < 2) {
console.log(`attempt #${attempt} failed! performing attempt #${attempt + 1} in 10 seconds`)
await new Promise(r => setTimeout(r, 10000))

Expand Down

0 comments on commit 9d6828d

Please sign in to comment.