Skip to content

Commit

Permalink
revert again
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 19, 2024
1 parent cb5fb99 commit eaefb69
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/server/lib/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,10 @@ const getBuffer = function (details) {
return Promise.resolve(details.buffer)
}

return new Promise((resolve, reject) => {
details.image.getBuffer(Jimp.AUTO, (err, val) => {
if (err) {
reject(err)
} else {
resolve(val)
}
})
})
return Promise
.promisify(details.image.getBuffer)
// @ts-expect-error
.call(details.image, Jimp.AUTO)
}

const getDimensions = function (details) {
Expand Down

0 comments on commit eaefb69

Please sign in to comment.