From 6ee3416e4ef3fce1225222bca86909150c53bf0b Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Fri, 20 Dec 2024 12:53:47 -0500 Subject: [PATCH] revert outputFile change --- packages/server/lib/screenshots.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/lib/screenshots.ts b/packages/server/lib/screenshots.ts index 4e2b41bd8226..8f68189c7a41 100644 --- a/packages/server/lib/screenshots.ts +++ b/packages/server/lib/screenshots.ts @@ -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 })