Skip to content

Commit 9900b70

Browse files
author
kadraman
committed
Correcting format specifier
1 parent 00b1e4b commit 9900b70

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/fod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
PACKAGE_EXTRA_OPTS: "-bt none"
108108
SOURCE_DIR: ${{env.DEFAULT_SOURCE_DIR}}
109109
DO_POLICY_CHECK: false # we will do this later afer SCA and DAST scan
110+
DO_EXPORT: true
110111

111112
FoD-OSS-Scan:
112113
runs-on: ubuntu-latest

src/utils/image.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export abstract class ImageUtils {
2727
const outputFile = file.replace(/\.[^/.]+$/, `.${type}`);
2828
await sharp(file)
2929
.resize(width, height)
30-
.toFormat(type)
30+
.toFormat(type as keyof sharp.FormatEnum)
3131
.toFile(outputFile);
3232
return { sendStatus: (status: number) => status };
3333
}

0 commit comments

Comments
 (0)