feature/tagging #16

Merged
cameron merged 22 commits from feature/tagging into master 2023-04-10 12:55:28 +00:00
2 changed files with 2 additions and 8 deletions
Showing only changes of commit 7863990c68 - Show all commits

View File

@@ -5,7 +5,7 @@ use actix_web::{
};
use chrono::{Duration, Utc};
use jsonwebtoken::{encode, EncodingKey, Header};
use log::{debug, error};
use log::{error, info};
use std::sync::Mutex;
use crate::{
@@ -36,7 +36,7 @@ pub async fn login<D: UserDao>(
creds: Json<LoginRequest>,
user_dao: web::Data<Mutex<D>>,
) -> HttpResponse {
debug!("Logging in: {}", creds.username);
info!("Logging in: {}", creds.username);
let mut user_dao = user_dao.lock().expect("Unable to get UserDao");

View File

@@ -39,12 +39,6 @@ pub async fn list_photos<TagD: TagDao, FS: FileSystemAccess>(
return dao
.get_files_with_tag_ids(tag_ids.clone())
.map(|tagged_file| {
tagged_file
.iter()
.map(|photo_name| photo_name.clone())
.collect()
})
.context(format!("Failed to files with tag_ids: {:?}", tag_ids))
.map(|tagged_files| {
HttpResponse::Ok().json(PhotosResponse {