From f7e5958b47c2a24b67eb742bc8f6d8c62fc43b40 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Wed, 18 Dec 2024 10:51:02 -0500 Subject: [PATCH] fix type of overwrite --- packages/server/lib/screenshots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/lib/screenshots.ts b/packages/server/lib/screenshots.ts index 3d4e79dfd2cf..cd760386387b 100644 --- a/packages/server/lib/screenshots.ts +++ b/packages/server/lib/screenshots.ts @@ -367,7 +367,7 @@ const getDimensions = function (details) { return pick(details.image.bitmap) } -const ensureSafePath = function (withoutExt: string, extension: string, overwrite: boolean, num = 0) { +const ensureSafePath = function (withoutExt: string, extension: string, overwrite: Data['overwrite'], num = 0) { const suffix = `${(num && !overwrite) ? ` (${num})` : ''}.${extension}` const maxSafePrefixBytes = maxSafeBytes - suffix.length