feat: Add .env file to gitignore and update dependencies

The commit adds the `.env` file to the `.gitignore` and updates the dependencies in the `Cargo.toml` and `Cargo.lock` files. This change ensures that sensitive environment variables are not committed to the repository and keeps the dependencies up to date.
This commit is contained in:
aprilthepink 2024-06-17 19:52:51 +02:00
parent 1174f92915
commit 15bba70d2a
12 changed files with 58 additions and 11 deletions

View file

@ -58,7 +58,7 @@ impl Object for post::Model {
let post = crate::entities::prelude::Post::find()
.filter(post::Column::Id.eq(object_id.to_string()))
.one(data.app_data().database_connection.clone().as_ref()).await;
Ok(None)
Ok(post.unwrap())
}
async fn into_json(self, _data: &Data<Self::DataType>) -> Result<Self::Kind, Self::Error> {