From c5f4ac71b72be0d48d04298777028e79663c0f26 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Mon, 6 May 2024 17:36:41 +0800 Subject: [PATCH] Update github.ts --- src/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.ts b/src/github.ts index 79aff8a..9ccba32 100644 --- a/src/github.ts +++ b/src/github.ts @@ -149,7 +149,7 @@ export const upload = async ( const [owner, repo] = config.github_repository.split("/"); const { name, size, mime, data: body } = asset(path); const currentAsset = currentAssets.find( - ({ name: currentName }) => currentName.replace(' ','.') == name + ({ name: currentName }) => currentName == name.replace(' ','.') ); if (currentAsset) { console.log(`♻️ Deleting previously uploaded asset ${name}...`);