Another simplification.

This commit is contained in:
mike12345567 2023-12-05 15:55:09 +00:00
parent 50270b8854
commit 2bf65601a1
1 changed files with 3 additions and 7 deletions

View File

@ -155,13 +155,9 @@ export function isValidInternalAPIKey(apiKey: string) {
return true return true
} }
// fallback to enable rotation // fallback to enable rotation
if ( return !!(
env.INTERNAL_API_KEY_FALLBACK && env.INTERNAL_API_KEY_FALLBACK && env.INTERNAL_API_KEY_FALLBACK === apiKey
env.INTERNAL_API_KEY_FALLBACK === apiKey )
) {
return true
}
return false
} }
/** /**