Skip to content

Commit

Permalink
revert outputFile change
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 20, 2024
1 parent eaefb69 commit 6ee3416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/lib/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ const ensureSafePath = function (withoutExt: string, extension: string, overwrit
}

// path does not exist, attempt to create it to check for an ENAMETOOLONG error
return fs.outputFile(fullPath, '')
// @ts-expect-error
return fs.outputFileAsync(fullPath, '')
.then(() => fullPath)
.catch((err) => {
debug('received error when testing path %o', { err, fullPath, maxSafePrefixBytes, maxSafeBytes })
Expand Down

0 comments on commit 6ee3416

Please sign in to comment.