Updated modified date when saving and removed hardcoded attachment domain

This commit is contained in:
Daniel García
2018-02-15 01:07:57 +01:00
parent 31bf2bc2b1
commit 912901780e
6 changed files with 14 additions and 19 deletions

View File

@ -41,7 +41,7 @@ fn post_folders(data: Json<Value>, headers: Headers, conn: DbConn) -> Result<Jso
err!("Invalid name")
}
let folder = Folder::new(headers.user.uuid.clone(), name.unwrap().into());
let mut folder = Folder::new(headers.user.uuid.clone(), name.unwrap().into());
folder.save(&conn);