From 4996986ef91de33b7474e19dbd6dd8779a468ec6 Mon Sep 17 00:00:00 2001 From: amio Date: Fri, 4 Oct 2019 17:41:16 +0800 Subject: [PATCH] fix: prevent miss spelled scale arg --- libs/serve-badge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/serve-badge.ts b/libs/serve-badge.ts index a55a007..bcb2de1 100644 --- a/libs/serve-badge.ts +++ b/libs/serve-badge.ts @@ -28,7 +28,7 @@ export default function (req, res, options: ServeBadgeOptions) { style: query.style || process.env.BADGE_STYLE, icon: _icon.src, iconWidth: iconWidth || _icon.width, - scale: scale && parseInt(scale, 10), + scale: scale && parseInt(scale, 10) || 1, }) const staleControl = `stale-while-revalidate=604800, stale-if-error=604800`