Skip to content

Commit

Permalink
feat: [#303] store in the database the torrent fields creation date c…
Browse files Browse the repository at this point in the history
…reated_by encoding

Added bindings to the add torrent query in the mysql implementation for the new added fields
  • Loading branch information
MMelchor authored and mario-nt committed Nov 7, 2023
1 parent aadde22 commit c3d69f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/databases/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ impl Database for Mysql {
.bind(root_hash)
.bind(torrent.info.source.clone())
.bind(torrent.comment.clone())
.bind(torrent.creation_date)
.bind(torrent.created_by.clone())
.bind(torrent.encoding.clone())
.execute(&mut *tx)
.await
.map(|v| i64::try_from(v.last_insert_id()).expect("last ID is larger than i64"))
Expand Down

0 comments on commit c3d69f4

Please sign in to comment.