diff --git a/api/cards/most-commit-language.ts b/api/cards/most-commit-language.ts index f60233670..da7194034 100644 --- a/api/cards/most-commit-language.ts +++ b/api/cards/most-commit-language.ts @@ -1,4 +1,4 @@ -import {getCommitsLanguageSVGWithThemeName} from '../../src/cards/most-commit-lauguage-card'; +import {getCommitsLanguageSVGWithThemeName} from '../../src/cards/most-commit-language-card'; import {changToNextGitHubToken} from '../utils/github-token-updater'; import {getErrorMsgCard} from '../utils/error-card'; import {translateLanguage} from '../../src/utils/translator' @@ -6,7 +6,7 @@ import type {VercelRequest, VercelResponse} from '@vercel/node'; export default async (req: VercelRequest, res: VercelResponse) => { let {username, theme = 'default', exclude = ""} = req.query; - + if (typeof theme !== 'string') { res.status(400).send('theme must be a string'); return; diff --git a/src/app.ts b/src/app.ts index 832da1d12..f5317145a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,7 +1,7 @@ import * as core from '@actions/core'; import {createProfileDetailsCard} from './cards/profile-details-card'; import {createReposPerLanguageCard} from './cards/repos-per-language-card'; -import {createCommitsPerLanguageCard} from './cards/most-commit-lauguage-card'; +import {createCommitsPerLanguageCard} from './cards/most-commit-language-card'; import {createStatsCard} from './cards/stats-card'; import {createProductiveTimeCard} from './cards/productive-time-card'; import {spawn} from 'child_process'; diff --git a/src/cards/most-commit-lauguage-card.ts b/src/cards/most-commit-language-card.ts similarity index 100% rename from src/cards/most-commit-lauguage-card.ts rename to src/cards/most-commit-language-card.ts