chore: tidy unused code

This commit is contained in:
Mythie
2023-09-19 02:40:58 +00:00
parent 1be0b9e01f
commit b411db40da
3 changed files with 1 additions and 3 deletions

View File

@ -39,7 +39,7 @@ export const getDatabaseUrl = () => {
if (url.hostname.endsWith('neon.tech')) {
const [projectId, ...rest] = url.hostname.split('.');
if (!projectId.endsWith('-bouncer')) {
if (!projectId.endsWith('-pooler')) {
url.hostname = `${projectId}-pooler.${rest.join('.')}`;
}