Update github.ts

This commit is contained in:
MystiPanda 2024-05-06 17:36:41 +08:00 committed by GitHub
parent 2c0ffd1d02
commit c5f4ac71b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,7 @@ export const upload = async (
const [owner, repo] = config.github_repository.split("/"); const [owner, repo] = config.github_repository.split("/");
const { name, size, mime, data: body } = asset(path); const { name, size, mime, data: body } = asset(path);
const currentAsset = currentAssets.find( const currentAsset = currentAssets.find(
({ name: currentName }) => currentName.replace(' ','.') == name ({ name: currentName }) => currentName == name.replace(' ','.')
); );
if (currentAsset) { if (currentAsset) {
console.log(`♻️ Deleting previously uploaded asset ${name}...`); console.log(`♻️ Deleting previously uploaded asset ${name}...`);