refactor UserResolver.ts

This commit is contained in:
ogerly 2022-08-07 22:41:57 +02:00
parent 2c06fbdbd0
commit dec15c24ca

View File

@ -43,7 +43,7 @@ const isPassword = (password: string): boolean => {
return !!password.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9 \\t\\n\\r]).{8,}$/)
}
const LANGUAGES = ['de', 'en']
const LANGUAGES = ['de', 'en', 'es']
const DEFAULT_LANGUAGE = 'de'
const isLanguage = (language: string): boolean => {
return LANGUAGES.includes(language)