mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
Remove quote languages check (#2645)
This commit is contained in:
parent
7d19f54828
commit
5ae8ff0759
2 changed files with 1 additions and 42 deletions
|
@ -9,7 +9,6 @@ import {
|
|||
validateConfiguration,
|
||||
validateRequest,
|
||||
} from "../../middlewares/api-utils";
|
||||
import SUPPORTED_QUOTE_LANGUAGES from "../../constants/quote-languages";
|
||||
|
||||
const quotesRouter = Router();
|
||||
|
||||
|
@ -119,10 +118,7 @@ quotesRouter.post(
|
|||
validateRequest({
|
||||
body: {
|
||||
quoteId: joi.string().required(),
|
||||
quoteLanguage: joi
|
||||
.string()
|
||||
.valid(...SUPPORTED_QUOTE_LANGUAGES)
|
||||
.required(),
|
||||
quoteLanguage: joi.string().required(),
|
||||
reason: joi
|
||||
.string()
|
||||
.valid(
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
const SUPPORTED_QUOTE_LANGUAGES = [
|
||||
"albanian",
|
||||
"arabic",
|
||||
"code_c++",
|
||||
"code_c",
|
||||
"code_java",
|
||||
"code_javascript",
|
||||
"code_python",
|
||||
"code_rust",
|
||||
"czech",
|
||||
"danish",
|
||||
"dutch",
|
||||
"english",
|
||||
"filipino",
|
||||
"french",
|
||||
"german",
|
||||
"hindi",
|
||||
"icelandic",
|
||||
"indonesian",
|
||||
"irish",
|
||||
"italian",
|
||||
"lithuanian",
|
||||
"malagasy",
|
||||
"polish",
|
||||
"portuguese",
|
||||
"russian",
|
||||
"serbian",
|
||||
"slovak",
|
||||
"spanish",
|
||||
"swedish",
|
||||
"thai",
|
||||
"toki_pona",
|
||||
"turkish",
|
||||
"vietnamese",
|
||||
];
|
||||
|
||||
export default SUPPORTED_QUOTE_LANGUAGES;
|
Loading…
Reference in a new issue