feat: read all users for a role

feat:  better reapply database migration compatibility
refactor: ♻️ better naming for some functions
This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-06 02:04:48 +03:00
parent 0a6780a1de
commit cb4e5ec344
6 changed files with 37 additions and 13 deletions

View file

@ -73,7 +73,7 @@ pub async fn delete(
.await
}
pub async fn read_all(
pub async fn read_all_for_post(
post_creation_time: DateTime<Utc>,
database_connection: &Pool<Postgres>,
) -> Result<Vec<Comment>, sqlx::Error> {
@ -86,4 +86,4 @@ pub async fn read_all(
)
.fetch_all(database_connection)
.await
}
}