Skip to content

Commit 769d792

Browse files
allissonCopilot
andauthored
Update fastpubsub/config.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e6df913 commit 769d792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastpubsub/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Settings(BaseSettings):
4646
model_config = SettingsConfigDict(env_file=".env", env_prefix="fastpubsub_")
4747

4848
@field_validator("database_url")
49-
def database_url_must_startswith(cls, v: str):
49+
def validate_database_url_format(cls, v: str):
5050
if not v.startswith("postgresql+psycopg://"):
5151
raise ValueError("must start with 'postgresql+psycopg://'")
5252
return v

0 commit comments

Comments
 (0)