change db url

This commit is contained in:
Schrottkatze 2024-11-06 17:05:06 +01:00
parent cee861758d
commit 8e9dea9aef
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

@ -6,7 +6,7 @@ use thiserror::Error;
use crate::model::{Chat, Message}; use crate::model::{Chat, Message};
type Result<T> = std::result::Result<T, AppStateError>; type Result<T> = std::result::Result<T, AppStateError>;
const DB_URL: &str = "postgres://localhost/chatdings"; const DB_URL: &str = "postgres://chatdings@localhost/chatdings";
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct AppState { pub struct AppState {